Home > Enterprise >  bs4Dash: How to disable (remove) dark/light skin switch?
bs4Dash: How to disable (remove) dark/light skin switch?

Time:01-31

It seems that changing the main background color and also header (navbar) background color in dark mode is not possible. per this link:

  • Example

    CodePudding user response:

    Set the argument dark = NULL in dashboardPage():

    library(shiny)
    library(bs4Dash)
    
    shinyApp(
      ui = dashboardPage(
        dark = NULL, 
        
        title = "Basic Dashboard",
        header = dashboardHeader(),
        sidebar = dashboardSidebar(),
        controlbar = dashboardControlbar(),
        footer = dashboardFooter(),
        body = dashboardBody()
      ),
      server = function(input, output) {}
    )
    
    
    ``
    
  •  Tags:  
  • Related