@nodeject/ui-components
Version:
UI library for non-trivial components
17 lines (16 loc) • 477 B
TypeScript
/// <reference types="react" />
export interface SchedioTreeNode {
children?: SchedioTreeNode[];
TreeNodeComponent: React.ReactNode;
nodeKey: string;
parentKey: string;
}
export declare type SchedioTreeDataStructure = SchedioTreeNode[];
export interface SchedioTreeOptions {
draggable?: boolean;
mode?: 'edit' | 'view';
}
export interface SchedioTreeStructure {
treeData: SchedioTreeDataStructure;
options: SchedioTreeOptions;
}