Skip to content
EliteChart

IndicatorsDialog

Documentation


Documentation / @elitechart/core / IndicatorsDialog

Defined in: ui/indicators-dialog.ts:206

Two-pane modal indicators picker — categories on the left, search + filtered list on the right.

Example

code
import { IndicatorsDialog, DEFAULT_INDICATORS_CATALOG } from '@elitechart/core';
const dialog = new IndicatorsDialog({
  mount: document.body,
  catalog: DEFAULT_INDICATORS_CATALOG,
  onAdd: (id, entry) => host.addIndicator(id, entry.defaultParams),
  onClose: () => console.log('dismissed'),
});

Constructors

Constructor

code
new IndicatorsDialog(config): IndicatorsDialog;

Defined in: ui/indicators-dialog.ts:227

Parameters

config

IndicatorsDialogConfig

Returns

IndicatorsDialog

Accessors

activeCategory

Get Signature

code
get activeCategory(): IndicatorCategory;

Defined in: ui/indicators-dialog.ts:530

Testing hook — current category.

Returns

IndicatorCategory


activeSubTab

Get Signature

code
get activeSubTab(): IndicatorSubTab;

Defined in: ui/indicators-dialog.ts:525

Testing hook — current sub-tab.

Returns

IndicatorSubTab


element

Get Signature

code
get element(): HTMLElement;

Defined in: ui/indicators-dialog.ts:520

Testing hook — read the root element.

Returns

HTMLElement

Methods

close()

code
close(): void;

Defined in: ui/indicators-dialog.ts:513

Close the dialog + invoke onClose if supplied.

Returns

void


destroy()

code
destroy(): void;

Defined in: ui/indicators-dialog.ts:534

Returns

void


refresh()

code
refresh(): void;

Defined in: ui/indicators-dialog.ts:354

Re-render the list — call after external state (selected overlays) changes.

Returns

void