Skip to content

charton API


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

Function: registerInput() ​

registerInput<I, V>(kind, renderer): () => void

Defined in: ui/src/form-inputs.ts:67

Render inputs of kind with renderer in every form dialog. Replaces a built-in kind of the same name. Returns a function that removes it again.

Type Parameters ​

I ​

I = FormInputDef

V ​

V = unknown

Parameters ​

kind ​

string

renderer ​

InputRenderer<I, V>

Returns ​

() => void