GridApi
TypeScript
declare class GridApi<T = any> extends BaseApi
Extends
BaseApi
Methods
Method Details
getCellValue
TypeScript
getCellValue(cellPosition: CellPosition): T | undefined;
Parameters
Parameter | Type |
---|---|
cellPosition | CellPosition |
Returns
T | undefined
getCellValueFromRowData
TypeScript
getCellValueFromRowData(columnId: string, rowData: any): any;
Parameters
Parameter | Type |
---|---|
columnId | string |
rowData | any |
Returns
any
getPrimaryKeyField
Returns primaryKey value
TypeScript
getPrimaryKeyField(): string;
Returns
string
getPrimaryKeyValue
TypeScript
getPrimaryKeyValue(rowData: unknown): string | number | undefined;
Parameters
Parameter | Type |
---|---|
rowData | unknown |
Returns
string | number | undefined
getRowDataByPrimaryKey
TypeScript
getRowDataByPrimaryKey(primaryKey: string): T | undefined;
Parameters
Parameter | Type |
---|---|
primaryKey | string |
Returns
T | undefined
setRowHeight
TypeScript
setRowHeight(rowHeight: number): void;
Parameters
Parameter | Type |
---|---|
rowHeight | number |
Returns
void
setZebraStripes
TypeScript
setZebraStripes(zebraStripes: boolean): void;
Parameters
Parameter | Type |
---|---|
zebraStripes | boolean |
Returns
void