Skip to content

charton API


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

Function: createFormDialog() ​

createFormDialog(host, schema, options?): FormDialog

Defined in: ui/src/form-dialog.ts:108

A modal settings dialog built from a schema. It opens at once in host (the shell element, so it picks up the theme) and is removed when closed. Throws when the schema has mistakes; validateFormSchema lists them.

Parameters ​

host ​

HTMLElement

schema ​

FormSchema

options? ​

FormDialogOptions = {}

Returns ​

FormDialog