Skip to content

charton API


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

Function: createDraftEditor() ​

createDraftEditor(chart, options?): DraftEditorHandle

Defined in: ui/src/draft-editor.ts:53

The default answer to clicking a draft's quantity or type: a keypad with presets, or a menu of order types, next to the segment. Apps that call preventDefault() on draft:edit show their own UI instead; the editor decides after every listener ran, so listeners added after it count too.

Parameters ​

chart ​

Chart

options? ​

DraftEditorOptions = {}

Returns ​

DraftEditorHandle