Options related to Dynamic Row Forms in AdapTable

TypeScript
export interface

Properties

PropertyDescriptionDefault
autoHandleWhether AdapTable automatically updates AG Grid data model with created/edited/deleted rowstrue
disableInlineEditingPrevents direct editing in Grid cells even for editable columnsfalse
includeColumnInRowFormIs given Column displayed in Row Formtrue
onRowFormSubmitEvent fired when a Row Form is submitted via a standard button provided by AdapTable; this is not invoked when custom form buttons are providedundefined
rowFormButtonsCustom form buttons; if provided, need to handle form submission explicitly
rowFormDescriptionCustom form description providerundefined
rowFormFieldLabelCustom form field label providerundefined
rowFormTitleCustom form title provider'Create New Row'/'Edit Row'
setPrimaryKeyValueFunction called when auto-handling 'create' or 'clone' Command Button; returned value should be valid for Primary Key columnundefined

Property Details

autoHandle

Whether AdapTable automatically updates AG Grid data model with created/edited/deleted rows

TypeScript
autoHandle?: boolean;
Default Value

true

Property Value

boolean

disableInlineEditing

Prevents direct editing in Grid cells even for editable columns

TypeScript
disableInlineEditing?: boolean;
Default Value

false

Property Value

boolean

includeColumnInRowForm

Is given Column displayed in Row Form

TypeScript
includeColumnInRowForm?: (rowFormColumnContext: RowFormColumnContext) => boolean;
Default Value

true

Property Value

(rowFormColumnContext:RowFormColumnContext) => boolean

onRowFormSubmit

Event fired when a Row Form is submitted via a standard button provided by AdapTable; this is not invoked when custom form buttons are provided

TypeScript
onRowFormSubmit?: (rowFormSubmittedInfo: RowFormSubmittedInfo<TData>) => void;
Default Value

undefined

Property Value

(rowFormSubmittedInfo:RowFormSubmittedInfo<TData>) => void

rowFormButtons

Custom form buttons; if provided, need to handle form submission explicitly

TypeScript
rowFormButtons?: AdaptableButton<RowFormContext<TData>>[];
Property Value

AdaptableButton<RowFormContext<TData>>[]

rowFormDescription

Custom form description provider

TypeScript
rowFormDescription?: string | ((context: RowFormTitleContext<TData>) => string);
Default Value

undefined

Property Value

string | ((context:RowFormTitleContext<TData>) => string)

rowFormFieldLabel

Custom form field label provider

TypeScript
rowFormFieldLabel?: (context: RowFormFieldContext<TData>) => string;
Default Value

undefined

Property Value

(context:RowFormFieldContext<TData>) => string

rowFormTitle

Custom form title provider

TypeScript
rowFormTitle?: string | ((context: RowFormTitleContext<TData>) => string);
Default Value

'Create New Row'/'Edit Row'

Property Value

string | ((context:RowFormTitleContext<TData>) => string)

setPrimaryKeyValue

Function called when auto-handling 'create' or 'clone' Command Button; returned value should be valid for Primary Key column

TypeScript
setPrimaryKeyValue?: (context: SetPrimaryKeyValueContext<TData>) => any;
Default Value

undefined

Property Value

(context:SetPrimaryKeyValueContext<TData>) => any