UNPKG

@progress/kendo-react-grid

Version:

React Data Grid (Table) provides 100+ ready-to-use data grid features. KendoReact Grid package

79 lines (78 loc) 2.37 kB
/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { KendoReactComponentBaseProps } from '@progress/kendo-react-common'; import { GridRowType } from './GridRowType.js'; import { GridRowsSettings } from './GridRowsSettings.js'; /** * The props that the Grid passes to the GridRow component when creating it. Accessible when passing a custom row to the `rows` prop of the Grid. */ export interface GridRowProps extends KendoReactComponentBaseProps { /** * The `data` object that represents the current row. */ dataItem: any; /** * Indicates whether the row is an alternating row. */ isAltRow: boolean; /** * Indicates whether the row has at least one edit cell. */ isInEdit: 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 event that is fired when the row is double clicked. */ onDoubleClick: any; /** * Sets the height of the row. */ rowHeight?: number; /** * The type of the row. */ rowType: GridRowType; /** * Sets a set of rows components that the Grid will render instead of the built-in row. */ rows?: GridRowsSettings; /** * The index to be applied to the `aria-rowindex` attribute. * * @remarks * This property is related to accessibility. */ ariaRowIndex?: number; /** * The index of the leaf dataItem in data. Used by selection. */ dataIndex: number; /** * Indicates if the row is selected. */ isSelected: boolean; /** * @hidden */ isHighlighted?: boolean; /** * @hidden */ absoluteRowIndex: number; /** * @hidden */ isRowReorderable?: boolean; }