FM_set_mod_state: Set the Module State

View source: R/formods.R

FM_set_mod_stateR Documentation

Set the Module State

Description

Sets the module state from the userdata under the specified id

Usage

FM_set_mod_state(session, id, state)

Arguments

session

Shiny session variable

id

ID string for the module.

state

Module state to set.

Value

Session variable with the module state set.

Examples

# We need a Shiny session variable and a module state
# object to use this function:
sess_res = UD_test_mksession()
session = sess_res$session
state   = sess_res$state
FM_set_mod_state(session, "UD", state)

formods documentation built on April 12, 2025, 1:57 a.m.