Description Usage Arguments Details Value
This function stores the value of the last class to be added (using this function), then removes that class before addding the new class. For example, this may be useful if you want to modify a panel to show an alert.
1 | observe_class_swap(id, expr, env = parent.frame(), quoted = FALSE)
|
id |
A character vector to identify the html element to operate on. |
expr |
An expression that returns a character vector to add to the html element. |
env |
The environment in which to evaluate |
quoted |
Is |
As this is an observer, there is no return value. It is called for the side-effect of changing the class of the html element.
This is based on shiny::renderText()
nothing
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.