LayoutState

View as Markdown

Layout section of Adaptable State, including Initial State.

Layouts is a non-empty list of table and pivot layouts. CurrentLayout is the Name loaded at startup; when omitted, the first layout is used. LayoutExtensions is how objects from other modules (Format Columns, Styled Columns, and so on) apply only in named layouts.

TypeScript
export interface LayoutState extends
Extends

BaseState

Properties

PropertyTypeDescription
CurrentLayoutstringLayout to be loaded when AdapTable starts (using Name property in Layout); if not provided the first Layout is used
LayoutExtensionsLayoutExtension[]Objects from other Modules (e.g. Format Columns, Styled Columns) which apply only in specific Layouts
LayoutsLayoutArrayCollection of Layouts - can be Table or Pivot

Property Details

CurrentLayout

Layout to be loaded when AdapTable starts (using Name property in Layout); if not provided the first Layout is used

TypeScript
CurrentLayout?: string;
Property Value

string

LayoutExtensions

Objects from other Modules (e.g. Format Columns, Styled Columns) which apply only in specific Layouts

TypeScript
LayoutExtensions?: LayoutExtension[];
Property Value

LayoutExtension[]

Layouts

Collection of Layouts - can be Table or Pivot

TypeScript
Layouts: LayoutArray;
Property Value

LayoutArray