我正在开发一个闪亮的应用程序,其中我只想在悬停或鼠标悬停操作时进行文本输出
我尝试添加一个操作按钮
用户界面:
fluidRow(box (title = p("Rates by Gender and Race", actionButton("titleBtId", "", icon=icon('question-circle'),class = "btn-xs", title = "Info"),textOutput("text_id"),hover=T), width = 15, status = 'primary', solidHeader = TRUE,tabPanel('',plotlyOutput("racegender",height = "100%"))%>% withSpinner(color="#0dc5c1")))
Run Code Online (Sandbox Code Playgroud)
服务器:
output$text_id <- renderText({
paste0("hi")
})
Run Code Online (Sandbox Code Playgroud)
我不确定如何编辑它以仅在悬停时显示文本