Skip to main content

grid-pro.gridpro.applytemplatedefinitions

Home > @genesislcap/grid-pro > GridPro > applyTemplateDefinitions

GridPro.applyTemplateDefinitions() method

Warning: This API is now obsolete.

use applyTemplateDefinitions instead.

Will merge templated column definitions with columnDefs plus localStorage's column state or deferredColumnStates.

Signature:

applyTemplateDefinitions(columnDefs: ColDef[], deferredColumnDefsOrState?: boolean): Promise<ColDef<any>[]>;

Parameters

Parameter

Type

Description

columnDefs

ColDef[]

The column definitions to apply to the grid.

deferredColumnDefsOrState

boolean

(Optional) If true, will merge the column definitions with the saved column state or the deferredColumnStates property on the grid-pro-genesis-datasource element.

Returns:

Promise<ColDef<any>[]>

The merged column definitions.