FormControl

View as Markdown

Opens an in a popover when clicked, pre-populated from the row, reusing the full Adaptable Form engine (fields, validation, layout).

TypeScript
export interface FormControl<TData = any, CTX = ActionColumnContext<TData>> extends BaseControl<TData,
Extends

BaseControl<TData, CTX>

Properties

PropertyTypeDescription
formAdaptableForm<any>The Form to display. Its onSubmit receives the entered formData and the
Action Column context, so it can write back to the row.
getInitialData(context: CTX) => Record<string, any>Optional function to seed the Form's initial data from the current row.
type'form'Discriminator. Set to 'form'.

Property Details

form

The Form to display. Its onSubmit receives the entered formData and the Action Column context, so it can write back to the row.

TypeScript
form: AdaptableForm<any>;
Property Value

AdaptableForm<any>

getInitialData

Optional function to seed the Form's initial data from the current row.

TypeScript
getInitialData?: (context: CTX) => Record<string, any>;
Property Value

(context: CTX) => Record<string, any>

type

Discriminator. Set to 'form'.

TypeScript
type: 'form';
Property Value

'form'