Skip to content

charton API


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

Function: askTemplateName() ​

askTemplateName(host, chart, title, current, done): FormDialog

Defined in: ui/src/template-name.ts:11

Ask for a template name in a short dialog titled title over host, starting from current (empty for a new template, the old name for a rename), in the chart's language. done gets the trimmed name on Save, null on Cancel. The indicator and drawing template menus use it.

Parameters ​

host ​

HTMLElement

chart ​

Chart

title ​

string

current ​

string

done ​

(name) => void

Returns ​

FormDialog