input_chip | 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.
input_chip(
id,
choices,
...,
values = choices,
select = NULL,
disable = NULL,
placeholder = NULL,
max = NULL,
sort = "stack"
)
update_chip(
id,
choices = NULL,
values = choices,
selected = NULL,
max = NULL,
enable = NULL,
disable = NULL,
session = getDefaultReactiveDomain()
)
id |
A character string. The id of the reactive input. |
choices |
A character vector or list specifying the possible choices. |
... |
Optional named arguments specifying HTML attributes for the input element. |
values |
A character vector or list of strings specifying the input's
values, defaults to |
disable |
A boolean. The checkbox starts disabled if |
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 |
sort |
One of
|
selected |
One or more of |
session |
A shiny session object. |
inline |
One of |
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.
Other inputs:
fileInput()
,
input_button()
,
input_checkbox()
,
input_checkbox_group()
,
input_form()
,
input_list_group()
,
input_menu()
,
input_radio_group()
,
radiobarInput()
,
rangeInput()
,
selectInput()
,
textInput()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.