shiny - RShiny中fluidRow内的盒子上的悬停功能
问题描述
我有一个非常大的闪亮应用程序,其中我有多个fluidRow,每个fluidRow 都有多个box 元素,我想在fluidRow 中的所有box 元素上创建一个悬停功能。
library(shiny)
# library(rintrojs)
ui <- shinyUI(fluidPage(
fluidRow(
box(
# h3(strong("OVERALL")),
title = #h3(strong("OVERALL")),
"OVERALL",
width = 12,
status = "primary",
target = 'row',
solidHeader = TRUE,
align='center',
collapsible = FALSE,
DT::dataTableOutput("tab_PF1")
)
)
))
server <- shinyServer(function(input, output) {#Server file end
})
shinyApp(ui = ui, server = server)
查看 Shiny Tutorials 我可以看到悬停功能仅适用于 imageOutput 和 plotOutput
那么有什么解决方案可以让我将鼠标悬停在我的盒子元素上吗?请帮助...代码只是它的一个示例。请调整,如果您提供相同的解决方案,那就太好了。
解决方案
是的,库是可能的,shinyBS
因为您可以使用它的功能BSTooltip
,或者addToolTip
分别在输入和输出以及 UI 和服务器中工作。
BSToolTip(title,...)
addToolTip(session,title,...)
在服务器的 UI中
可用于工具提示:悬停、单击、双击。
推荐阅读
- sql - 如何查询日期时间之间有多少项目改变了状态?
- reactjs - setState 一个数组和对象
- python - tkinter- 按钮的子类未从另一个类内部放置在屏幕上
- swift - onTapGesture 修饰符从第二次在 swiftui 中起作用
- php - 使用 Microsoft Office365 进行第三方身份验证
- javascript - 在 JavaScript 性能中定位一个没有变量的 html id
- openapi-generator - 使用 OpenApi 生成器设置不记名令牌
- pandas - Pandas 数据框选择列表列包含特定元素集的行
- c# - Blazor onended 未触发
- javascript - 为什么 Webpack 在 bundle url 之后添加 QueryString 参数?