/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { CellProps } from '@progress/kendo-react-data-tools'; /** * Represents the props of the TreeListCell component. */ export interface TreeListCellProps extends Omit { /** * An array of indexes of each parent and current item in the data tree. */ level: number[]; /** * Indicates that the data item of the cell has subitems. */ hasChildren?: boolean; /** * If set to `true`, the cell will render indentation based on its level prop and * the icons that are used for expanding and collapsing child rows. */ expandable?: boolean; /** * The index of the column. Useful for applying `aria-colindex` accessibility attribute. */ colIndex: number; /** * The event that is fired when the expand or collapse icon of the cell is clicked. */ onExpandChange: (event: React.MouseEvent, dataItem: any, level: number[]) => void; /** * A function for overriding the default rendering of the cell. */ render?: (defaultRendering: React.ReactElement | null, props: TreeListCellProps) => React.ReactElement | null; /** * The event that is fired when the cell value is changed. */ onChange?: (event: { dataItem: any; level: number[]; syntheticEvent: React.SyntheticEvent; field?: string; value?: any; }) => void; }