CustomToolbarFormContext
Context provided to and to any Adaptable Buttons declared on a .
It extends with the current formData
value, the form's overall validity (formIsValid) and any per-field
validation errors (formErrors), so handlers can react to - or gate on -
the current state of the controls rendered in the toolbar.
export interface CustomToolbarFormContext<TData extends AdaptableFormData = AdaptableFormData> extendsExtends
Properties
| Property | Type | Description |
|---|---|---|
| formData | TData | Current values of the form fields, keyed by field name. Stronglytyped as TData when the hosting CustomToolbar supplies an explicitdata shape. |
| formErrors | AdaptableFormErrors | Per-field validation errors keyed by field name. Empty when the formis valid. |
| formIsValid | boolean | true when every (non-hidden) field's value satisfies its validationrules ( required, min, max, pattern, custom validate). |
| adaptableContext | any | Custom application Context provided in AdaptableOptions.adaptableContext |
Property Details
formData
Current values of the form fields, keyed by field name. Strongly
typed as TData when the hosting CustomToolbar supplies an explicit
data shape.
formData: TData;Property Value
TData
formErrors
Per-field validation errors keyed by field name. Empty when the form
is valid.
formErrors: AdaptableFormErrors;Property Value
formIsValid
true when every (non-hidden) field's value satisfies its validation
rules (required, min, max, pattern, custom validate).
formIsValid: boolean;Property Value
boolean
adaptableContext
Inherited from BaseContext
Custom application Context provided in AdaptableOptions.adaptableContext
adaptableContext: any;Property Value
any