/** * @license *------------------------------------------------------------------------------------------- * Copyright © 2026 Progress Software Corporation. All rights reserved. * Licensed under commercial license. See LICENSE.md in the package root for more information *------------------------------------------------------------------------------------------- */ import { ComponentType } from 'react'; import { TreeColumnBaseProps } from '@progress/kendo-react-data-tools'; import { TreeListCellProps } from './TreeListCellProps.js'; import { TreeListHeaderCellProps } from './TreeListHeaderCellProps.js'; import { TreeListFilterCellProps } from './TreeListFilterCellProps.js'; /** * The props of the columns of the TreeList component. */ export interface TreeListColumnProps extends Omit { /** * Defines the component that will be rendered as a cell. If not set, a `TreeListCell` will be rendered by default. */ cell?: ComponentType; /** * Defines the component that will be rendered as an edit cell. */ editCell?: ComponentType; /** * Defines the component that will be rendered as a header cell. * If not set, a `TreeListHeaderCell` will be rendered by default. */ headerCell?: ComponentType; /** * **Deprecated**. Use `filterCell` prop instead. */ filter?: ComponentType; /** * Defines the component that will be rendered as a filter cell. */ filterCell?: ComponentType; /** * A collection of child columns. */ children?: TreeListColumnProps[]; /** * Defines if the column is locked (frozen or sticky). * Locked columns are the columns that are visible at all times while the user scrolls the component horizontally. * Defaults to `false`. */ locked?: boolean; }