Skip to content

charton API


charton API / @chart-on/ui / templates / indicatorDefaults

Function: indicatorDefaults() ​

indicatorDefaults(__namedParameters?): IndicatorDefaults

Defined in: ui/src/templates.ts:178

Saved defaults for new indicators, one per indicator id, kept as the 'indicator-default' templates of storage. Give it to indicatorTemplates({ defaults }) for the menu items, and its initialState to the indicator picker so indicators added there start from the saved default; indicators added from code do not.

Parameters ​

__namedParameters? ​

IndicatorDefaultsOptions = {}

Returns ​

IndicatorDefaults