Call useGlassTabs() once somewhere in your UI before
using any widget.
# Switch active tab
updateGlassTabsUI(session, "main", "details")
# Hide or show a tab
hideGlassTab(session, "main", "admin")
showGlassTab(session, "main", "admin")
# Append or remove a tab at runtime
appendGlassTab(
session, "main",
glassTabPanel("compare", "Compare", h3("Compare")),
select = TRUE
)
removeGlassTab(session, "main", "compare")| Widget | Server value |
|---|---|
glassTabsUI("main", ...) |
input[["main-active_tab"]] or
glassTabsServer("main")() |
glassMultiSelect("metric", ...) |
input$metric or
glassMultiSelectValue(input, "metric")$selected() |
| multi-select style | input$metric_style or
glassMultiSelectValue(input, "metric")$style() |
glassSelect("region", ...) |
input$region or
glassSelectValue(input, "region")() |
useGlassTabs() must be called once in the UI.glassSelectValue() returns a reactive function, not a
list.glassMultiSelectValue() returns a list with
selected() and style().glassMultiSelect(), selected should
use choice values, not labels.load_all() before retesting.