如何将工具提示添加到shinyDashbord中的框标题项
我有一个简单的闪亮仪表板应用程序,其中有一个带有侧边栏的盒子。我想将工具提示添加到框标题中的侧边栏图标,以便当我将鼠标悬停在图标上时,工具提示会显示。这可能吗?
# Toggle a box sidebar
library(shiny)
library(bs4Dash)
shinyApp(
ui = dashboardPage(
header = dashboardHeader(),
body = dashboardBody(
box(
height = "500px",
width = 12,
maximizable = T,
solidHeader = FALSE,
collapsible = TRUE,
sidebar = boxSidebar(
id = "mycardsidebar",
width = 30,
p("Sidebar Content")
)
),
),
sidebar = dashboardSidebar()
),
server = function(input, output, session) {
}
)
感谢任何帮助
I have a simple shinyDashbord app with a box that has a sidebar in it. I would like to add tooltip to the sidebar icon in the box header so that when I hover the mouse over the icon, the tooltip shows up. Is that possible?
# Toggle a box sidebar
library(shiny)
library(bs4Dash)
shinyApp(
ui = dashboardPage(
header = dashboardHeader(),
body = dashboardBody(
box(
height = "500px",
width = 12,
maximizable = T,
solidHeader = FALSE,
collapsible = TRUE,
sidebar = boxSidebar(
id = "mycardsidebar",
width = 30,
p("Sidebar Content")
)
),
),
sidebar = dashboardSidebar()
),
server = function(input, output, session) {
}
)
Appreciate any help
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
https://github.com/RinteRface/bs4Dash/issues/267
There is concise documentation at https://github.com/RinteRface/bs4Dash/issues/267