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$elem
shiny UI element with (fixed) name elem
ui$elem$func
shiny UI widget, e.g. sliderInput
, ...
ui$elem$args
do.call
argument list for shiny UI widget func
change$elem
store current value of ui$elem
(intended for buttons)
value$elem
store current value of ui$elem
selected
store current number of selected language
widgetId
name of widget
observe
expression which contains code for observe
lang
language widget (necessary for translation)
data
internal 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.