Interface: IAction
Charting Library.IAction
Hierarchy
-
↳
IAction
Properties
id
Readonly
id: string
A unique ID of an action item.
Inherited from
type
Readonly
type: Action
Menu item type
Overrides
Methods
destroy
destroy(): void
Clean up (destroy) any subscriptions, intervals, or other resources that this IDestroyable instance has.
Returns
void
Inherited from
execute
execute(): void
A method which will be called when an action should be executed (e.g. when a user clicks on the item)
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.