TransposeConfig

View as Markdown

Config used when transposing a Grid

TypeScript
export interface

Properties

PropertyTypeDescriptionDefault
columnsToTransposestring[] | ((context:AdaptableColumnsContext) => string[])Ids of Columns to Transposeall Grid Columns
hideTransposedColumnbooleanHide the Transposed Columntrue
rowsToTransposeTypeHint<string, 'VisibleOnly' | 'All'>Which rows are transposed. 'All' (the default, also used when omitted) takes every row. 'VisibleOnly' takes the rows currently visible. Any other string is a boolean AdapTableQL expression, and only matching rows are transposed.All
transposedColumnIdstringColumn to use to do TranspositionPrimary Key Column

Property Details

columnsToTranspose

Ids of Columns to Transpose

TypeScript
columnsToTranspose?: string[] | ((context: AdaptableColumnsContext) => string[]);
Default Value

all Grid Columns

Property Value

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

hideTransposedColumn

Hide the Transposed Column

TypeScript
hideTransposedColumn?: boolean;
Default Value

true

Property Value

boolean

rowsToTranspose

Which rows are transposed. 'All' (the default, also used when omitted) takes every row. 'VisibleOnly' takes the rows currently visible. Any other string is a boolean AdapTableQL expression, and only matching rows are transposed.

TypeScript
rowsToTranspose?: TypeHint<string, 'VisibleOnly' | 'All'>;
Default Value

All

Property Value

TypeHint<string, 'VisibleOnly' | 'All'>

transposedColumnId

Column to use to do Transposition

TypeScript
transposedColumnId?: string;
Default Value

Primary Key Column

Property Value

string