![](/img/trans.png)
[英]How to change the color of a box's collapse/expand button in R Shiny?
[英]How to change color of helpText R Shiny
我需要在 Shiny 中更改 helpText 的顏色。 我對許多其他類型的文本使用相同的方法,但它不適用於此。 這是我嘗試開始工作的代碼片段,包括注釋掉的失敗嘗試。 任何想法將不勝感激。
#tagList(
# tags$style(HTML(".help-block a {color: black;}")),
tags$style('#assignFlagHelpText .help-block a {color: black}'),
div(id = 'assignFlagHelpText',
helpText('For grouped variables that depend on 1 sensor (i.e., wind speed/direction),
if one variable is bad, they likely all are. In that case, use this button.')
),
#),
編輯:我已經查看了下面選擇的問題和答案,但它對我不起作用,或者我不知道足以為我的目的正確修改它。 我嘗試了幾種方法。
側邊欄、標題或正文中的helpText
工作正常。 嘗試這個。
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
ui = dashboardPagePlus(
tags$head(
tags$style(HTML(".help-block a {color: red !important;}")),
),
header = dashboardHeaderPlus(
left_menu = tagList(
helpText(a('For grouped variables that depend on 1 sensor (i.e., wind speed/direction),
if one variable is bad, they likely all are. In that case, use this button.'))
)
),
sidebar = dashboardSidebar(
helpText(a('For grouped variables that depend on 1 sensor (i.e., wind speed/direction),
if one variable is bad, they likely all are. In that case, use this button.'))
),
body = dashboardBody(
helpText(a('For grouped variables that depend on 1 sensor (i.e., wind speed/direction),
if one variable is bad, they likely all are. In that case, use this button.'))
),
)
server = function(input, output) { }
shinyApp(ui,server)
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.