FM_set_mod_state | R Documentation |
Sets the module state from the userdata under the specified id
FM_set_mod_state(session, id, state)
session |
Shiny session variable |
id |
ID string for the module. |
state |
Module state to set. |
Session variable with the module state set.
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.