UNPKG

@syncfusion/ej2-react-treegrid

Version:
33 lines (32 loc) 1.26 kB
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { TreeGridColumnModel } from '@syncfusion/ej2-treegrid'; export interface TreeGridColumnDirTypecast { template?: string | Function | any; headerTemplate?: string | Function | any; filter?: any; filterTemplate?: string | Function | any; commandsTemplate?: string | Function | any; editTemplate?: string | Function | any; } /** * `ColumnDirective` represent a column of the react TreeGrid. * It must be contained in a TreeGrid component(`TreeGridComponent`). * ```tsx * <TreeGridComponent dataSource={data} allowPaging={true} allowSorting={true}> * <ColumnsDirective> * <ColumnDirective field='ID' width='100'></ColumnDirective> * <ColumnDirective field='name' headerText='Name' width='100'></ColumnDirective> * <ColumnsDirective> * </TreeGridComponent> * ``` */ export declare class ColumnDirective extends ComplexBase<TreeGridColumnModel | TreeGridColumnDirTypecast & { children?: React.ReactNode; }, TreeGridColumnModel | TreeGridColumnDirTypecast> { static moduleName: string; static complexTemplate: Object; } export declare class ColumnsDirective extends ComplexBase<{}, {}> { static propertyName: string; static moduleName: string; }