【问题标题】:Flexdashboard with Shiny - Widget Font StyleFlexdashboard with Shiny - 小部件字体样式
【发布时间】:2019-11-27 19:29:46
【问题描述】:

您好,我正在使用 Flexdashboard 构建仪表板,其中包含闪亮的功能。我在日期范围中包含了一个侧边栏,我正在尝试更改 Font_Style 以使其显示为粗体。我尝试了以下但它不起作用,任何想法:

br()
tags$style("label {font-style: bold;}")
dateRangeInput("dates", label = h6("DATE RANGE"))
hr()

Widget Snapshot

【问题讨论】:

  • 试试tags$style(".input-group-addon {font-weight: bold;}")。请注意,该类是 input-group-addon 并改用 font-weight: bold,...

标签: shiny flexdashboard


【解决方案1】:

试试tags$style(".input-group-addon {font-weight: bold;}")。请注意,该类是input-group-addon 并改用font-weight: bold,..

library(shiny)
ui <- fluidPage(
  tags$style(".input-group-addon {font-weight: bold;}"),
  dateRangeInput(inputId = "a", label = "", start = Sys.Date(), end = Sys.Date())
)

server <- function(input, output, session) {

}

shinyApp(ui, server)

【讨论】:

  • 我的第一个 Stack Overflow 问题...已检查 :)
猜你喜欢
  • 2020-07-18
  • 1970-01-01
  • 2016-12-07
  • 2019-01-09
  • 2017-02-07
  • 2023-04-10
  • 2023-04-02
  • 2011-05-03
  • 2014-09-24
相关资源
最近更新 更多