IUpdatableAction
Interface
Properties
id
ReadonlyAn unique ID of an action item. Could be used to distinguish actions between each other.
Type
string
type
ReadonlyMenu item type
Type
Methods
execute
A method which will be called when an action should be executed (e.g. when a user clicks on the item)
Signature
execute() => void
Returns
void
getState
Signature
getState() => Readonly<ActionState>
Returns
Returns a state object of the action.
Readonly<ActionState>
onUpdate
Signature
onUpdate() => ISubscription<OnActionUpdateHandler>
Returns
A subscription for an event when an action is updated.
ISubscription<OnActionUpdateHandler>
update
Update the options for the Action
Signature
update(options: Partial<OmitActionId<ActionOptions>>) => void
Parameters
Name | Type | Description |
---|---|---|
options | Partial<OmitActionId<ActionOptions>> | updated options |
Returns
void