grid-pro.gridpro
Home > @genesislcap/grid-pro > GridPro
GridPro class
The Grid Pro element.
Signature:
export declare class GridPro extends GridPro_base
Extends: GridPro_base
Remarks
Grid Pro is a Web Component wrapper around the AG Grid Community library.
Constructors
|
Constructor |
Modifiers |
Description |
|---|---|---|
|
Constructs a new instance of the |
Properties
|
Property |
Modifiers |
Type |
Description |
|---|---|---|---|
|
number |
The index to add new rows to when using | ||
|
|
Record<string, string> | ||
|
Grid | |||
|
|
GridOptions | ||
|
|
Record<string, string> | ||
|
boolean |
Whether to use the | ||
|
boolean |
Whether to use the | ||
|
boolean |
Whether to use the | ||
|
boolean | |||
|
string | |||
|
ColumnApi | |||
|
string | |||
|
boolean |
If false, will disable cell flashing for all cells by default, unless otherwise defined in custom colDef | ||
|
boolean | |||
|
boolean |
If true, will enable row flashing for all rows for | ||
|
GridApi | |||
|
boolean |
Boolean attribute to control whether the grid autosizes the columns upon interaction. This will disable the column widths from being manually set, and doesn't save the widths in local storage if you are using | ||
|
{ [componentName: string]: any; } | |||
|
GridProErrorItem<GridProErrorEvent['detail']>[] | |||
|
string | |||
|
GridOptions | |||
|
Injectable config that allows to change grid options on an app level basis To modify options, register instance of the config in DOM container that is above the grid or on the top level of the application, so it applies to all grids. | |||
|
|
GridParams | ||
|
|
Get the datasource element. | ||
|
HTMLSlotElement | |||
|
The case type to use for the header names. If not set, the default CONSTANT_CASE will be used. | |||
|
number | |||
|
|
boolean | ||
|
|
boolean | ||
|
|
string[] | ||
|
boolean | |||
|
boolean |
Enable pagination for the grid. | ||
|
number |
Number of rows per page when pagination is enabled. | ||
|
string |
The key to use for persisting the column state in local browser or KV storage. | ||
|
string |
The key to use for persisting the filter model in local browser or KV storage. | ||
|
any[] |
The row data to display in the grid. | ||
|
number | |||
|
Configuration for the grid status bar components. | |||
|
string | |||
|
boolean |
Enables or disables the grid status bar. |
Methods
|
Method |
Modifiers |
Description |
|---|---|---|
|
Adds an event listener to the grid element. | ||
|
applyTemplateDefinitions(columnDefs, deferredColumnDefsOrState) |
Will merge templated column definitions with | |
|
Clears the local grid options, this is used to clear the grid options when the grid is restarted. | ||
|
Gets the saved grid ColumnState[] from storage | ||
|
mergeAllColumnDefsAndStates(columnDefs, deferredColumnDefsOrState) |
Will merge templated column definitions with | |
|
| ||