@nodeject/ui-components
Version:
UI library for non-trivial components
30 lines (29 loc) • 702 B
TypeScript
/// <reference types="react" />
export interface SchedioTreeNode {
children?: SchedioTreeNode[];
TreeNodeComponent: React.ReactNode;
nodeKey: string;
parentKey: string;
}
export declare type SchedioTreeDataStructure = SchedioTreeNode[];
export declare enum LayoutStyle {
Org = 0,
List = 1
}
export interface NodeData {
id: string;
isLoading?: any;
nodeKind?: any;
parent: string;
wbsId: string;
layoutStyle: LayoutStyle;
title: string;
visibility: string;
}
export interface CytoNode {
data: NodeData;
}
export interface CytoGraph {
nodes: CytoNode[];
}
export declare type SchedioTreeFromServer = CytoGraph;