Skip to main content

Interface: IAction

Charting Library.IAction

Hierarchy​

Properties​

id​

Readonly

id: string

A unique ID of an action item.

Inherited from​

IMenuItem.id


type​

Readonly

type: Action

Menu item type

Overrides​

IMenuItem.type

Methods​

destroy​

destroy(): void

Clean up (destroy) any subscriptions, intervals, or other resources that this IDestroyable instance has.

Returns​

void

Inherited from​

IDestroyable.destroy


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​

Returns​

ISubscription<OnActionUpdateHandler> — A subscription for an event when an action is updated.