使用带有右侧面板的prettySwitch的ShinydashboardPlus-开关元素的排列混乱了
是否有办法像这样使开关再次漂亮
这里是代码。设置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)