如何在 shinyWidgets 包的 pickerInput() 中将粗体字号更改为组标题?

How to change bold font size to the headings of groups in pickerInput() of shinyWidgets package?

我正在构建一个 RShiny-App,现在我正在格式化一些部分,以便它们更具可读性。 我使用 pickerInput() 并希望将标题 DEAT 设为粗体。我正在使用以下 R-代码:

 pickerInput(inputId = "ma3DVariables", label = "Select 2 Interesting Variables", 
             choices = list('DE' = c("Munich", "Berin", "Hamburg"),
                            'AT' = c("Vienna", "Graz", "Salzburg")), 
             multiple = TRUE)

这给了我以下信息:

如何将标题设为粗体?有什么建议吗?

您可以将 custom style 添加到 Shiny 应用:

tags$head(tags$style(HTML(".dropdown-header .text { font-weight: bold }")))