chipInput | R Documentation |
The chip input is a selectize alternative. Choices are selected from a
dropdown menu and appear as chips below the input's text box. Chips do not
appear in the order they are selected. Instead chips are shown in the order
specified by the choices
argument. Use the max
argument to limit the
number of choices a user may select.
chipInput(
id,
choices = NULL,
values = choices,
selected = NULL,
...,
placeholder = NULL,
max = Inf,
inline = TRUE,
sort = "stack"
)
updateChipInput(
id,
choices = NULL,
values = choices,
selected = NULL,
max = NULL,
enable = NULL,
disable = NULL,
session = getDefaultReactiveDomain()
)
choices |
A character vector or list specifying the possible choices. |
values |
A character vector or list of strings specifying the input's
values, defaults to |
selected |
One or more of |
placeholder |
A character string specifying placeholder text of the
chip input, defaults to |
max |
A number specifying the maximum number of items a user may select,
defaults to |
inline |
One of |
sort |
One of
|
Other inputs:
checkbarInput()
,
fileInput()
,
formInput()
,
input_button()
,
input_checkbox()
,
listGroupInput()
,
menuInput()
,
radioInput()
,
radiobarInput()
,
rangeInput()
,
selectInput()
,
textInput()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.