tree model: recursive setCollapsed

related to #64887
This commit is contained in:
Joao Moreno
2018-12-14 12:17:43 +01:00
parent 24ef48c895
commit 94ee300f6c
7 changed files with 76 additions and 57 deletions

View File

@@ -315,6 +315,10 @@ export class AsyncDataTree<T extends NonNullable<any>, TFilterData = void> imple
this.tree.toggleCollapsed(this.getDataNode(element));
}
expandAll(): void {
this.tree.expandAll();
}
collapseAll(): void {
this.tree.collapseAll();
}