Helper function for constructing items for CommandBar and CommandBar.shinyInput.
Usage
CommandBarItem(
key,
text,
onClick = setInputValue(inputId = key, value = 0, event = TRUE),
...
)Arguments
- key
Key of the item.
- text
Text to be displayed on the menu.
- onClick
A JS function that runs on item click. By default it sends input value to
input[[key]]. If used withinCommandBar.shinyInput, it will send the value to the input ID specified ininputIdargument ofCommandBar.shinyInput.- ...
Additional props to pass to CommandBarItem.