shinydashboard
shinydashboard copied to clipboard
dashboardPage shouldn't create <title> HTML tags if title = NULL
Description
I'm using several dashboardPages inside of a navbarPage tabset for a project. Each call to dashboardPage automatically creates a new
Proposed outcome
If title = NULL in both dashboardPage and dashboardHeader, no additional
Example of issue
Run the following code snippet, and check the resulting page's source HTML:
ui <- navbarPage(
title = "Actual title",
dashboardPage(
title = NULL,
dashboardHeader(title = NULL),
dashboardSidebar(),
dashboardBody()
)
)
server <- function(input, output, session) {
}
shinyApp(ui, server)
Only title = NULL in the navbarPage. This generates no empty
If the snippet throws an error, I've wrapped the dashboardPage in a tabPanel:
ui <- navbarPage(
title = "Actual title",
tabPanel(
dashboardPage(
title = NULL,
dashboardHeader(title = NULL),
dashboardSidebar(),
dashboardBody()
)
)
)
server <- function(input, output, session) {
}
shinyApp(ui, server)