create_input | R Documentation |
An interactive input object is a reactive expression which wraps a reactive value. When the plot is rendered, an observer is created which pushes values into the reactive value in response to changes of an input object. Those changes invalidate the reactive expression, which will return the value, optionally passed through a mapping function.
create_input(
id = rand_id("input_"),
default = NULL,
map = identity,
controls = NULL
)
id |
The name of the input object in the Shiny app, such as "slider_1338869". |
default |
The default (starting) value for the input. |
map |
A mapping function. Defaults to |
controls |
A Shiny HTML tag object representing the UI for the controls. |
This function is designed to be used by authors of new types of interactive
inputs. If you are a ggvis user, please use one of the more specific input
functions starting with the input_
.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.