UNPKG

@adaptabletools/adaptable

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

52 lines (51 loc) 1.11 kB
import { IRowNode } from 'ag-grid-enterprise'; /** * Detailed information about a Row in AdapTable */ export interface GridRow<TData = any> { /** * Primary Key column's value for Row - how Adaptable locates a cell */ primaryKeyValue: any; /** * Actual data in the Row */ rowData?: TData; /** * Object which provides 'meta data' about the Row */ rowInfo?: RowInfo; /** * AG Grid Row Node object for the Row */ rowNode?: IRowNode<TData>; } /** * Provides meta data about a Row in Adaptable */ export interface RowInfo { /** * Is Row a Master Row (in a Master-Detail grid) */ isMaster?: boolean; /** * Is Row expanded (if a group row) */ isExpanded?: boolean; /** * Is Row grouped */ isGroup?: boolean; /** * Is Row selected */ isSelected?: boolean; /** * Is Row displayed (ie. filtered, not necessarily in viewport) */ isDisplayed?: boolean; /** * What level the Row is (if Row Grouping is active) */ rowGroupLevel?: number; }