add-remove-html-class {shidashi} | R Documentation |
Add or remove 'HTML' class from 'RAVE' application
Description
Only works in template framework provided by 'shidashi' package,
see use_template
Usage
add_class(selector, class, session = shiny::getDefaultReactiveDomain())
remove_class(selector, class, session = shiny::getDefaultReactiveDomain())
Arguments
selector |
'CSS' selector |
class |
class to add or to remove from selected elements |
session |
shiny session |
Value
No value is returned
Examples
server <- function(input, output, session){
# Add class `hidden` to element with ID `elemid`
add_class("#elemid", "hidden")
# Remove class `hidden` from element with class `shiny-input-optional`
remove_class(".shiny-input-optional", "hidden")
}
[Package shidashi version 0.1.6 Index]