IndicatorsDialogConfig
Documentation / @elitechart/core / IndicatorsDialogConfig
Defined in: ui/indicators-dialog.ts:79
Constructor config for IndicatorsDialog. The embedder owns the catalog and selection state.
Example
Properties
catalog
Defined in: ui/indicators-dialog.ts:81
isFavorite?
Defined in: ui/indicators-dialog.ts:98
Optional — queried at render time to decide whether to show a
filled star (★ favorite) vs empty star (☆). Also enables the
favorites category in the sidebar so the user can filter to
their starred indicators.
Parameters
id
string
Returns
boolean
isSelected?
Defined in: ui/indicators-dialog.ts:89
Optional — queried at render time to decide whether a row shows
"Added ✓" (selected) or "Add". When selected AND onRemove is
provided, clicking the button removes the indicator instead of
adding a duplicate — matches TV's toggle-in-list pattern.
Parameters
id
string
Returns
boolean
mount
Defined in: ui/indicators-dialog.ts:80
onAdd
Defined in: ui/indicators-dialog.ts:82
Parameters
id
string
entry
Returns
void
onClose?
Defined in: ui/indicators-dialog.ts:109
Optional close handler — called on Esc, backdrop click, or X button.
Returns
void
onRemove?
Defined in: ui/indicators-dialog.ts:91
Optional remove handler — fires when a selected row is re-clicked.
Parameters
id
string
entry
Returns
void
onToggleFavorite?
Defined in: ui/indicators-dialog.ts:100
Optional — fires when the star is clicked. Embedder persists the toggle.
Parameters
id
string
entry
Returns
void
recentOrder?
Defined in: ui/indicators-dialog.ts:107
Optional — returns the embedder's "recently used" indicator ids in most-recent-first order. Enables the Recent sidebar category. The dialog filters the catalog down to these ids and preserves the order so the top row is the most recently picked indicator.
Returns
readonly string[]