Skip to content
EliteChart

AlertsDialog

Documentation


Documentation / @elitechart/core / AlertsDialog

Defined in: ui/alerts-dialog.ts:70

Modal alerts manager — list, edit, delete every active + triggered alert. Re-renders via refresh() when alert events fire on the chart.

Example

code
const dialog = new AlertsDialog({ mount: document.body, binding });
chart.on('alert:create', () => dialog.refresh());
chart.on('alert:remove', () => dialog.refresh());

Constructors

Constructor

code
new AlertsDialog(config): AlertsDialog;

Defined in: ui/alerts-dialog.ts:78

Parameters

config

AlertsDialogConfig

Returns

AlertsDialog

Accessors

element

Get Signature

code
get element(): HTMLElement;

Defined in: ui/alerts-dialog.ts:129

Returns

HTMLElement

Methods

close()

code
close(): void;

Defined in: ui/alerts-dialog.ts:121

Returns

void


refresh()

code
refresh(): void;

Defined in: ui/alerts-dialog.ts:106

Re-render the list from the current binding.

Returns

void