@progress/kendo-react-grid
Version:
KendoReact Grid package
40 lines (39 loc) • 1.32 kB
TypeScript
/// <reference types="react" />
import { GridRowType } from './GridRowType';
/**
* The props that the Grid passes to the GridRow component when creating it. Accessible during the `rowRender` callback of the Grid.
*/
export interface GridRowProps {
/**
* The `data` object that represents the current row.
*/
dataItem: any;
/**
* Indicates whether the row is an alternating row.
*/
isAltRow: boolean;
/**
* Indicates if the row is hidden. The hidden row is rendered above the visible area of the Grid. Occurs when the Grid uses virtualization and the row is on the current page. When `rowHeight` is set, `isHidden` is always `true`.
*/
isHidden: boolean;
/**
* The event that is fired when the row is clicked.
*/
onClick: any;
/**
* The name of the field which will provide a Boolean representation of the selected state of the item.
*/
selectedField?: string;
/**
* The row height. Configuring `rowHeight` sets the height to the height of the current Grid row.
*/
rowHeight?: number;
/**
* The type of the row.
*/
rowType: GridRowType;
/**
* The method for rendering the row.
*/
render?: (row: React.ReactElement<HTMLTableRowElement>, props: GridRowProps) => React.ReactNode;
}