【发布时间】:2020-08-13 03:11:00
【问题描述】:
在右侧边栏中使用 shinydashboardPlus 和 prettySwitch - 开关元素的对齐方式混乱
有没有办法让开关像这样重新变漂亮
这里是代码。设置 md = FALSE 会起作用,但会影响其他一切的外观,所以我不想这样做。
library(shinydashboardPlus)
library(shinyWidgets)
ui <- dashboardPagePlus(
dashboardHeaderPlus(
enable_rightsidebar = TRUE
)
, dashboardSidebar()
, dashboardBody()
, rightSidebar(
background = "light"
, rightSidebarTabContent(
id = "id"
, title = "title"
, prettySwitch(
inputId = "switch_id"
, label = "switch"
)
)
)
, md = TRUE
)
server <- function(input, output){}
shinyApp(ui, server)
【问题讨论】:
-
您好,我在
shinydashboardPlus中找不到dashboardSidebar(),它是从哪里来的? -
来自
shinydashboard
标签: r shiny shinydashboard shinywidgets