@syncfusion/ej2-grids
Version:
Feature-rich JavaScript datagrid (datatable) control with built-in support for editing, filtering, grouping, paging, sorting, and exporting to Excel.
63 lines (62 loc) • 1.65 kB
TypeScript
import { Cell } from './cell';
import { IGrid } from '../base/interface';
/**
* Row
*
* @hidden
*/
export declare class Row<T> {
parent?: IGrid;
uid: string;
data: Object;
tIndex: number;
isCaptionRow: boolean;
isAggregateRow: boolean;
changes: Object;
isDirty: boolean;
aggregatesCount: number;
edit: string;
isSelected: boolean;
isFreezeRow: boolean;
isReadOnly: boolean;
isAltRow: boolean;
isDataRow: boolean;
isExpand: boolean;
rowSpan: number;
cells: Cell<T>[];
index: number;
indent: number;
subRowDetails: Object;
height: string;
visible: boolean;
attributes: {
[x: string]: Object;
};
cssClass: string;
lazyLoadCssClass: string;
foreignKeyData: Object;
isDetailRow: boolean;
childGrid: IGrid;
parentUid: string;
isSelectable?: boolean;
constructor(options: {
[x: string]: Object;
}, parent?: IGrid);
clone(): Row<T>;
/**
* Replaces the row data and grid refresh the particular row element only.
*
* @param {Object} data - To update new data for the particular row.
* @returns {void}
*/
setRowValue(data: Object): void;
/**
* Replaces the given field value and refresh the particular cell element only.
*
* @param {string} field - Specifies the field name which you want to update.
* @param {string | number | boolean | Date} value - To update new value for the particular cell.
* @returns {void}
*/
setCellValue(field: string, value: string | number | boolean | Date | null): void;
private makechanges;
}