UNPKG

es-grid-template

Version:

es-grid-template

22 lines (21 loc) 799 B
import type { TablePipeline } from '../pipeline'; export declare const treeMetaSymbol: unique symbol; export interface TreeModeFeatureOptions { defaultOpenKeys?: string[]; expandIconColumnIndex?: number; openKeys?: string[]; onChangeOpenKeys?: (nextKeys: string[], key: string, action: 'expand' | 'collapse') => void; isLeafNode?: (node: any, nodeMeta: { depth: number; expanded: boolean; rowKey: string; }) => boolean; iconIndent?: number; iconGap?: number; indentSize?: number; clickArea?: 'cell' | 'content' | 'icon'; stopClickEventPropagation?: boolean; treeMetaKey?: string | symbol; isTreeArray?: boolean; } export declare function treeMode(opts?: TreeModeFeatureOptions): (pipeline: TablePipeline) => TablePipeline;