Interface: IAction
Charting Library.IAction
Hierarchy
-
↳
IAction
Properties
id
• Readonly
id: string
An unique ID of an action item. Could be used to distinguish actions between each other.
Inherited from
type
• Readonly
type: Action
Menu item type
Overrides
Methods
execute
▸ execute(): void
A method which will be called when an action should be executed (e.g. when a user clicks on the item)
Returns
void
getState
▸ getState(): Readonly
<ActionState
>
Returns
Readonly
<ActionState
>
Returns a state object of the action.
onUpdate
▸ onUpdate(): ISubscription
<OnActionUpdateHandler
>
Returns
ISubscription
<OnActionUpdateHandler
>
A subscription for an event when an action is updated.