updateHierarchyInput: Update a hierarchical input from the server

View source: R/updateHierarchyInput.R

updateHierarchyInputR Documentation

Update a hierarchical input from the server

Description

Update 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 data is 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 TRUE or FALSE, opens or closes the dropdown panel.

Value

No useful return value, invisibly NULL.


shinyHierarchy documentation built on Oct. 2, 2026, 5:09 p.m.