An action definition that provides a button.
Optional
Readonly
Icon of the menu entry.
This action's unique id.
A textual label (or title) for this action.
The type of this action.
Method to decide if the action should be shown as disabled (optional).
Returns true if the action shall be available for the given item. Should return false otherwise.
true
false
Note that this method may be asynchronous (i.e. return a Promise<boolean>).
Promise<boolean>
Called if the menu item is clicked.
An action definition that provides a button.