Learn R Programming

shiny.fluent (version 0.4.0)

CommandBarItem: Command bar item

Description

Helper function for constructing items for CommandBar and CommandBar.shinyInput.

Usage

CommandBarItem(
  key,
  text,
  onClick = setInputValue(inputId = key, value = 0, event = TRUE),
  ...
)

Value

Item suitable for use in the CommandBar and CommandBar.shinyInput.

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 within CommandBar.shinyInput, it will send the value to the input ID specified in inputId argument of CommandBar.shinyInput.

...

Additional props to pass to CommandBarItem.

See Also

CommandBar