Skip to content

charton API


charton API / @chart-on/ui / index / ToastStackHandle

Interface: ToastStackHandle ​

Defined in: ui/src/toasts.ts:8

Returned by createToastStack: the stack's element and the toasts on screen, plus dismissAll and destroy.

Properties ​

el ​

readonly el: HTMLElement

Defined in: ui/src/toasts.ts:10

The stack over the chart (.pc-toasts).


toasts ​

readonly toasts: readonly HTMLElement[]

Defined in: ui/src/toasts.ts:12

Toasts on screen, oldest first.

Methods ​

destroy() ​

destroy(): void

Defined in: ui/src/toasts.ts:15

Returns ​

void


dismissAll() ​

dismissAll(): void

Defined in: ui/src/toasts.ts:14

Remove every toast.

Returns ​

void