View source: R/input-list-group.R
listGroupInput | R Documentation |
List group inputs are an actionable list of items. They behave similarly to checkboxes or radios, that is, users may select one or more items from the list. However, list group items may include highly variable content.
listGroupInput(
...,
id,
choices = NULL,
values = choices,
selected = NULL,
layout = "vertical",
flush = FALSE
)
updateListGroupInput(
id,
choices = NULL,
values = choices,
selected = NULL,
enable = NULL,
disable = NULL,
session = getDefaultReactiveDomain()
)
... |
Additional named arguments passed as HTML attributes to the parent element or tag elements passed as child elements to the parent element. |
id |
A character string specifying the id of the reactive input. |
choices |
A vector of character strings or list of tag elements specifying the content of the list group's items. |
values |
A character vector specifying the values of the list items,
defaults to |
selected |
One or more of |
layout |
A responsive argument. One of |
flush |
One of |
enable |
One of |
disable |
One of |
session |
A reactive context, defaults to |
Action lists.
listGroupInput( id = "list1", choices = paste("Item", 1:5) )
card( header = h6("Card header"), listGroupInput( id = NULL, flush = TRUE, choices = c( "Item 1", "Item 2", "Item 3", "Item 4", "Item 5" ) ) )
listGroupInput( layout = "horizontal", id = NULL, choices = c("Item 1", "Item 2", "Item 3") )
Other inputs:
buttonGroupInput()
,
buttonInput()
,
checkbarInput()
,
checkboxInput()
,
chipInput()
,
fileInput()
,
formInput()
,
menuInput()
,
navInput()
,
radioInput()
,
radiobarInput()
,
rangeInput()
,
selectInput()
,
textInput()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.