Skip to content

charton API


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

Function: registerIndicatorTemplates() ​

registerIndicatorTemplates(chart, templates, options): () => void

Defined in: ui/src/indicator-templates.ts:92

List a collection of templates in the template dialogs of chart, under their own sidebar category. Returns a function that removes them again.

Parameters ​

chart ​

Chart

templates ​

readonly IndicatorTemplate[]

options ​

IndicatorTemplateCollectionOptions

Returns ​

() => void