RinteRface / bs4Dash

Bootstrap 4 shinydashboard using AdminLTE3
https://bs4dash.rinterface.com
Other
428 stars 81 forks source link

starting in light mode? #183

Closed stevepowell99 closed 3 years ago

stevepowell99 commented 3 years ago

with reference to #180, is there a way just to start the app in light mode as prior to version 2.0? the skin parameter does not seem to make any difference.

DivadNojnarg commented 3 years ago

As written in the documentation, skin is a deprecated {shinydashboard} parameter. The dark and light mode is controlled by the dark parameter. Set it to FALSE to disable the dark mode:

library(shiny)
library(bs4Dash)

shinyApp(
    ui = dashboardPage(
        dark = FALSE,
        header = dashboardHeader(
            title = dashboardBrand(
                title = "My dashboard",
                color = "primary",
                href = "https://adminlte.io/themes/v3",
                image = "https://adminlte.io/themes/v3/dist/img/AdminLTELogo.png"
            )
        ),
        sidebar = dashboardSidebar(),
        body = dashboardBody(
            box(status = "danger"),
            box(status = "primary"),
            box(status = "orange")
        ),
        controlbar = dashboardControlbar(),
        title = "DashboardPage"
    ),
    server = function(input, output) { }
)