Description Usage Arguments Value See Also Examples
Creates a button group component
1 2 3 | buttonGroup(inputId, lstItems, selectedItems = list(),
activeColor = "green", inactiveColor = "light gray",
impliedColor = "orange", label = "")
|
inputId |
id for the button group component. The selected groups will be returned to input$inputId |
lstItems |
list with all items to display in the buttun group |
selectedItems |
items which will be initialy selected in the button group |
activeColor |
color for selected items |
inactiveColor |
color for inactive items |
impliedColor |
color for the special status 'implied' This status is uesfull in the context of the filter app. In the filter app there will be multiple button groups and certain selections can imply the absence of items on other groups. |
A button group input control that can be added to a UI definition.
Other buttongroup: resetButtonGroup
;
updateButtonGroup
1 | buttonGroup('btnGroup',list('A','B','C'),selectedItems=list('A','B'))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.