e-virt-table
Version:
A powerful data table based on canvas. You can use it as data grid、Microsoft Excel or Google sheets. It supports virtual scroll、cell edit etc.
17 lines (16 loc) • 463 B
TypeScript
export type TreeUtilPosition = 'none' | 'before' | 'after' | 'inside';
interface TreeConfig {
key?: string;
childrenKey?: string;
}
export declare class TreeUtil {
private root;
private key;
private childrenKey;
constructor(initialData: any[], config?: TreeConfig);
getTree(): any[];
treeMove(sourceKey: any, targetKey: any, position: TreeUtilPosition): void;
private findNodeWithParent;
private isDescendant;
}
export {};