LayoutBase

View as Markdown

Fields shared by a table layout and a pivot layout.

Name is required and is how CurrentLayout selects the layout. Sorts, filters, pinning, sizing, charts to open and row selection live here. The column list lives on or .

TypeScript
export interface LayoutBase extends
Extends

AdaptableObject

Properties

PropertyTypeDescription
AutoSizeColumnsbooleanWhether Columns should autosize when Layout first loads
ColumnFiltersColumnFilter[]Collection of Column Filters to apply in Layout
ColumnGroupValuesColumnGroupValuesDefines which Column Groups are expanded / collapsed
ColumnHeadersColumnStringMapSet of custom header names for some (or all) Columns
ColumnPinningColumnDirectionMapColumns pinned to an edge. Each entry is a column id set to 'left' or 'right'. Columns absent from the map are not pinned.
ColumnSizingColumnSizingMapControls size (width or flex & min/max) for Columns
ColumnSortsColumnSort[]Sorting to apply in the Layout
GrandTotalRow'top' | 'bottom' | 'pinnedTop' | 'pinnedBottom' | booleanWhere the grand total row is shown.

'top', 'bottom', 'pinnedTop' or 'pinnedBottom'. true is the same as 'top'. false, or omitting the property, turns the grand total row off.
GridFilterGridFilterGrid Filter to apply in Layout
NamestringName of the Layout as it appears in the Layout toolbar and tool panel
OpenChartsLayoutOpenChart[]AG Grid charts to open when this layout is selected (by chart UUID or name)
RowGroupDisplayTypeRowGroupDisplayTypeHow Row Groups are displayed: 'single' - one hierarchical group Column; 'multi' - a separate group Column per Row Grouped Column; 'groupRows' - full-width group rows (no group column); defaults to 'single'
RowGroupValuesRowGroupValuesDefines which Row Groups are expanded / collapsed
RowSelectionLayoutRowSelection | falseDefines Row Selection behaviour for Layout; if false, Row Selection is disabled; if undefined, GridOptions is used
SuppressAggFuncInHeaderbooleanHides the aggFunc in Column header: e.g. 'sum(Price)' becomes 'Price'
IsReadOnlybooleanSets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')

Property Details

AutoSizeColumns

Whether Columns should autosize when Layout first loads

TypeScript
AutoSizeColumns?: boolean;
Property Value

boolean

ColumnFilters

Collection of Column Filters to apply in Layout

TypeScript
ColumnFilters?: ColumnFilter[];
Property Value

ColumnFilter[]

ColumnGroupValues

Defines which Column Groups are expanded / collapsed

TypeScript
ColumnGroupValues?: ColumnGroupValues;
Property Value

ColumnGroupValues

ColumnHeaders

Set of custom header names for some (or all) Columns

TypeScript
ColumnHeaders?: ColumnStringMap;
Property Value

ColumnStringMap

ColumnPinning

Columns pinned to an edge. Each entry is a column id set to 'left' or 'right'. Columns absent from the map are not pinned.

TypeScript
ColumnPinning?: ColumnDirectionMap;
Property Value

ColumnDirectionMap

ColumnSizing

Controls size (width or flex & min/max) for Columns

TypeScript
ColumnSizing?: ColumnSizingMap;
Property Value

ColumnSizingMap

ColumnSorts

Sorting to apply in the Layout

TypeScript
ColumnSorts?: ColumnSort[];
Property Value

ColumnSort[]

GrandTotalRow

Where the grand total row is shown.

'top', 'bottom', 'pinnedTop' or 'pinnedBottom'. true is the same as 'top'. false, or omitting the property, turns the grand total row off.

TypeScript
GrandTotalRow?: 'top' | 'bottom' | 'pinnedTop' | 'pinnedBottom' | boolean;
Property Value

'top' | 'bottom' | 'pinnedTop' | 'pinnedBottom' | boolean

GridFilter

Grid Filter to apply in Layout

TypeScript
GridFilter?: GridFilter;
Property Value

GridFilter

Name

Name of the Layout as it appears in the Layout toolbar and tool panel

TypeScript
Name: string;
Property Value

string

OpenCharts

AG Grid charts to open when this layout is selected (by chart UUID or name)

TypeScript
OpenCharts?: LayoutOpenChart[];
Property Value

LayoutOpenChart[]

RowGroupDisplayType

How Row Groups are displayed: 'single' - one hierarchical group Column; 'multi' - a separate group Column per Row Grouped Column; 'groupRows' - full-width group rows (no group column); defaults to 'single'

TypeScript
RowGroupDisplayType?: RowGroupDisplayType;
Property Value

RowGroupDisplayType

RowGroupValues

Defines which Row Groups are expanded / collapsed

TypeScript
RowGroupValues?: RowGroupValues;
Property Value

RowGroupValues

RowSelection

Defines Row Selection behaviour for Layout; if false, Row Selection is disabled; if undefined, GridOptions is used

TypeScript
RowSelection?: LayoutRowSelection | false;
Property Value

LayoutRowSelection | false

SuppressAggFuncInHeader

Hides the aggFunc in Column header: e.g. 'sum(Price)' becomes 'Price'

TypeScript
SuppressAggFuncInHeader?: boolean;
Property Value

boolean

IsReadOnly

Inherited from AdaptableObject

Sets Entity to ReadOnly (overwriting a Strategy Entitlement of 'Full')

TypeScript
IsReadOnly?: boolean;
Property Value

boolean