ActionDescriptionWithCallback
Menu action which provides a callback function to be executed. Action is executed when user clicks the item.
Properties
action
Action to be executed when user clicks the menu item.
Type
(a?: ActionDescription) => void
Type declaration
Signature
(a?: ActionDescription) => void
Parameters
Name | Type |
---|---|
a? | ActionDescription |
Returns
void
checkable
OptionalWhether menu action represents a checkbox state. Set it to true if you need a checkbox.
Type
boolean
checked
OptionalValue of the checkbox.
Type
boolean
checkedStateSource
OptionalGetter to retrieve the current checkbox value.
Type
() => boolean
Type declaration
Signature
() => boolean
Returns
boolean
enabled
OptionalWhether the action is enabled. Set to false to disabled the action.
Type
boolean
externalLink
OptionalExternal link (url) which will be opened upon clicking the menu item.
Type
boolean
icon
OptionalA string of SVG icon for an action. A string should be a string representation of SVG (not a path/URL).
Type
string
separator
OptionalIs a menu separator
Type
boolean
shortcut
OptionalKeyboard shortcut for the action. Displayed as hint text.
Type
string
text
OptionalDisplayed text for action
Type
string
tooltip
OptionalTooltip text to be displayed when hovering over the action item.
Type
string