CommandBarItem | R Documentation |
Helper function for constructing items for CommandBar
and CommandBar.shinyInput
.
CommandBarItem(
key,
text,
onClick = setInputValue(inputId = key, value = 0, event = TRUE),
...
)
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 |
... |
Additional props to pass to CommandBarItem. |
Item suitable for use in the CommandBar
and CommandBar.shinyInput
.
CommandBar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.