AdaptableFormFieldRenderParams
Parameters provided to when rendering a custom field type.
TypeScript
export interfaceProperties
| Property | Type | Description |
|---|---|---|
| context | BaseContext | Adaptable context (carries adaptableApi, etc.). When the form is hosted by a Custom Toolbar this is in fact a CustomToolbarFormContext. |
| disabled | boolean | Resolved disabled state of the field (after evaluating field.disabled if it's a function). |
| error | string | Current validation error for this field, if any. |
| field | AdaptableFormField | The field definition itself - useful when sharing one render function across several custom fields. |
| formData | AdaptableFormData | The current values of all fields in the form, keyed by field name. |
| setValue | (newValue: any) => void | Setter to update the field's value. Triggers form-level onChange, per-field onValueChange and re-validation. |
| value | any | The field's current value |
Property Details
context
Adaptable context (carries adaptableApi, etc.). When the form is hosted by a Custom Toolbar this is in fact a CustomToolbarFormContext.
TypeScript
context: BaseContext;Property Value
disabled
Resolved disabled state of the field (after evaluating field.disabled if it's a function).
TypeScript
disabled: boolean;Property Value
boolean
error
Current validation error for this field, if any.
TypeScript
error?: string;Property Value
string
field
The field definition itself - useful when sharing one render function across several custom fields.
TypeScript
field: AdaptableFormField;Property Value
formData
The current values of all fields in the form, keyed by field name.
TypeScript
formData: AdaptableFormData;Property Value
setValue
Setter to update the field's value. Triggers form-level onChange, per-field onValueChange and re-validation.
TypeScript
setValue: (newValue: any) => void;Property Value
(newValue: any) => void
value
The field's current value
TypeScript
value: any;Property Value
any