charton API / @chart-on/ui / index / InputContext
Interface: InputContext<V>
Defined in: ui/src/form-inputs.ts:27
What the form hands a renderer.
Type Parameters
V
V = unknown
Properties
controlId
readonlycontrolId:string
Defined in: ui/src/form-inputs.ts:29
Put this id on the focusable control; the field's label points at it.
labelId
readonlylabelId:string
Defined in: ui/src/form-inputs.ts:31
Id of the field's label, for controls labelled with aria-labelledby (groups).
localization?
readonlyoptionallocalization?:Localizer
Defined in: ui/src/form-inputs.ts:39
The language of the dialog (its localization option), for the control's own text.
value
readonlyvalue:V
Defined in: ui/src/form-inputs.ts:33
Value when the control is created.
values
readonlyvalues:Readonly<FormValues>
Defined in: ui/src/form-inputs.ts:35
Current values of the whole form.
Methods
set()
set(
value):void
Defined in: ui/src/form-inputs.ts:37
Report a value the user entered; the form validates it and updates the preview.
Parameters
value
V
Returns
void