You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both bs4Dash::tabsetPanel and bs4Dash::controlbarMenu return the following error when using type = "hidden"
Error in match.arg(type) : 'arg' should be one of “tabs”, “pills”
The documentation for both functions suggests that type = "hidden" is an option. I believe it is inheriting that part of the documentation from shiny.
type |
"tabs"Standard tab look
"pills"Selected tabs use the background fill color
"hidden"Hides the selectable tabs. Use type = "hidden" in conjunction with tabPanelBody() and updateTabsetPanel() to control the active tab via other input controls. (See example below)
(note that the documentation for those functions isn't currently showing any example of that functionality)
shiny::tabsetPanel does allow type = "hidden"
bs4Dash 2.0.0.90
shiny 1.6.0
R 4.0.2
minimal example that produces the error below:
if (interactive()) {
library(shiny)
library(bs4Dash)
shinyApp(
ui = dashboardPage(
header = dashboardHeader(),
sidebar = dashboardSidebar(),
body = dashboardBody(),
controlbar = dashboardControlbar(
id = "controlbar",
collapsed = FALSE,
overlay = TRUE,
pinned = TRUE,
controlbarMenu(
type = "hidden",
controlbarItem("item one"),
controlbarItem("item two")
)
),
title = "updateControlbar"
),
server = function(input, output, session) {
}
)
}
The text was updated successfully, but these errors were encountered:
Hi there,
Both bs4Dash::tabsetPanel and bs4Dash::controlbarMenu return the following error when using type = "hidden"
The documentation for both functions suggests that type = "hidden" is an option. I believe it is inheriting that part of the documentation from shiny.
shiny::tabsetPanel does allow type = "hidden"
bs4Dash 2.0.0.90
shiny 1.6.0
R 4.0.2
minimal example that produces the error below:
The text was updated successfully, but these errors were encountered: