Optional
enabledAn optional callback which allows for conditionally including a command. If not included, defaults to true
.
contextual information to assist with determining whether a command is appropriate for a particular item
whether to include this command in the UI for the target item
Optional
executeAn optional callback to allow for executing logic when a user executes the command.
void
It is up to the user to execute commands, such as clicking a button that represents the command. This is the general-purpose event handler for that button click. Note that the command may instead be a menu item or other control for other scenarios, depending on the sheet and version of Tidy 5e.
Optional
iconOptional string of CSS classes representing a FontAwesome icon to be rendered with the command.
Optional
labelA label to use when displaying the command. Localization keys also work.
Optional
tooltipOptional tooltip text for the target command.