Update a hierarchical input from the server
Source:R/updateHierarchyInput.R
updateHierarchyInput.RdUpdate a hierarchical input from the server
Usage
updateHierarchyInput(
session = shiny::getDefaultReactiveDomain(),
inputId,
data = NULL,
levels = NULL,
selected = NULL,
expanded = NULL,
clear = FALSE,
open = NULL
)Arguments
- session
Shiny session object.
- inputId
The input id to update.
- data
Optional new data frame.
- levels
Optional hierarchy column names (required if
datais set).- selected
Optional vector of node ids to select (cascades to descendants).
- expanded
Optional vector of node ids to expand.
- clear
If
TRUE, clears the current selection.- open
If
TRUEorFALSE, opens or closes the dropdown panel.