Skip to content

charton API


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

Function: openIndicatorSettings() ​

openIndicatorSettings(chart, host, indicator, options?): FormDialog | null

Defined in: ui/src/indicator-settings.ts:293

Open the settings panel of indicator in host, docked to its right edge (a bottom sheet when the host is narrow) so the chart stays in view. Edits apply live; Ok keeps them, Cancel, Escape, the close button and close() put the indicator back as it was. The header switches to the other indicators on the chart. The panel closes if the indicator is removed. Null while the indicator's definition is not registered.

Parameters ​

chart ​

Chart

host ​

HTMLElement

indicator ​

Indicator

options? ​

IndicatorSettingsOptions = {}

Returns ​

FormDialog | null