Description Usage Arguments Details Value Examples
Creates a new widget. Basically a widget is an environment with several components
1 | widget(inputId, lang)
|
inputId |
widget name |
lang |
language widget |
ui$elemshiny UI element with (fixed) name elem
ui$elem$funcshiny UI widget, e.g. sliderInput, ...
ui$elem$argsdo.call argument list for shiny UI widget func
change$elemstore current value of ui$elem (intended for buttons)
value$elemstore current value of ui$elem
selectedstore current number of selected language
widgetIdname of widget
observeexpression which contains code for observe
langlanguage widget (necessary for translation)
datainternal data the widget needs
a widget object (environment)
1 2 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.