LayoutOptions

View as Markdown

Options for configuring Layouts; manage Column visibility, order, sorting, grouping, width etc.

TypeScript
export interface

Properties

PropertyTypeDescriptionDefault
autoCreateLayoutboolean |AutoCreateLayoutOptionsCreates a Default Layout based on AG Grid ColDefs, with optons to add a name and set if created on every loadundefined
autoRemoveDeletedColumnsFromLayoutsbooleanWhen a Calculated or Free Text Column is deleted, also remove it from all Layouts and layout propertiestrue
enableLayoutExtensionsUIbooleanShow controls for extending objects (e.g. Alerts, Format Columns) into Layouts - a Layouts step in wizards and Add/Remove buttons in Settings Panelfalse
isRowSelectionCheckboxVisible(context:LayoutRowSelectionContext<TData>) => booleanSets if Row Selection checkbox should be visible for a given row
layoutCreationDefaultPropertiesLayoutCreationDefaultProperties| ((context:LayoutCreationDefaultPropertiesContext) =>TableLayoutCreationDefaultProperties|PivotLayoutCreationDefaultProperties)Default properties to apply when creating a new Layout (Table or Pivot)
layoutViewOptionsLayoutViewOptionsSet of options for how Layouts are displayed in Settings Panel
pivotPreviewColumnsstring[] | ((context:PivotPreviewColumnsContext) => string[])Columns to display in Table that opens when viewing Pivot Cell contents

Property Details

autoCreateLayout

Creates a Default Layout based on AG Grid ColDefs, with optons to add a name and set if created on every load

TypeScript
autoCreateLayout?: boolean | AutoCreateLayoutOptions;
Default Value

undefined

Property Value

boolean |AutoCreateLayoutOptions

autoRemoveDeletedColumnsFromLayouts

When a Calculated or Free Text Column is deleted, also remove it from all Layouts and layout properties

TypeScript
autoRemoveDeletedColumnsFromLayouts?: boolean;
Default Value

true

Property Value

boolean

enableLayoutExtensionsUI

Show controls for extending objects (e.g. Alerts, Format Columns) into Layouts - a Layouts step in wizards and Add/Remove buttons in Settings Panel

TypeScript
enableLayoutExtensionsUI?: boolean;
Default Value

false

Property Value

boolean

isRowSelectionCheckboxVisible

Sets if Row Selection checkbox should be visible for a given row

TypeScript
isRowSelectionCheckboxVisible?: (context: LayoutRowSelectionContext<TData>) => boolean;
Property Value

(context:LayoutRowSelectionContext<TData>) => boolean

layoutCreationDefaultProperties

Default properties to apply when creating a new Layout (Table or Pivot)

TypeScript
layoutCreationDefaultProperties?: LayoutCreationDefaultProperties | ((context: LayoutCreationDefaultPropertiesContext) => TableLayoutCreationDefaultProperties | PivotLayoutCreationDefaultProperties);
Property Value

LayoutCreationDefaultProperties| ((context:LayoutCreationDefaultPropertiesContext) =>TableLayoutCreationDefaultProperties|PivotLayoutCreationDefaultProperties)

layoutTagOptions

Tag-based layout extensions. Do not set this.

Extend an object into a Layout with Layout.LayoutExtensions in Adaptable State.

TypeScript
layoutTagOptions?: LayoutTagOptions;
Deprecated

Layouts are extended through Layout.LayoutExtensions in Adaptable State

Property Value

LayoutTagOptions

layoutViewOptions

Set of options for how Layouts are displayed in Settings Panel

TypeScript
layoutViewOptions?: LayoutViewOptions;
Property Value

LayoutViewOptions

pivotPreviewColumns

Columns to display in Table that opens when viewing Pivot Cell contents

TypeScript
pivotPreviewColumns?: string[] | ((context: PivotPreviewColumnsContext) => string[]);
Property Value

string[] | ((context:PivotPreviewColumnsContext) => string[])