tsiclient
Version:
--- [//]: <> (This content is similar to https://github.com/MicrosoftDocs/azure-docs/edit/main/includes/tsi-retirement.md)
38 lines (34 loc) • 1.12 kB
TypeScript
import { C as Component } from './Component-1d0e5b9b';
declare class HierarchyNode {
name: string;
markedName: string;
children: Array<HierarchyNode>;
parent: HierarchyNode;
isExpanded: boolean;
isSelected: boolean;
isLeaf: boolean;
childrenInFilter: boolean;
selfInFilter: boolean;
color: (n: HierarchyNode) => string;
click: (n: any) => void;
isLeafParent: boolean;
level: number;
constructor(name: string, level: number);
filter(filterText: any): void;
traverse(condition: (n: HierarchyNode) => boolean): any[];
colorify(el: any): void;
}
declare class Hierarchy extends Component {
private filterText;
private root;
private withContextMenu;
private contextMenu;
private clickedNode;
private hierarchyList;
constructor(renderTarget: Element);
render(data: any, options: any): void;
expandCollapseList: (node: HierarchyNode, el: any, isFromClick?: boolean, event?: any) => void;
buildTree(data: any): HierarchyNode;
private closeContextMenu;
}
export { Hierarchy as H };