(treeData, itemColors)
| 76 | // treeData = ["item0", {"folder0": ["sub-item0", "sub-item1"]}, "item1"] |
| 77 | // itemColors = {"path0" : wpd.Color, "path1" : wpd.Color} |
| 78 | render(treeData, itemColors) { |
| 79 | this.idmap = []; |
| 80 | this.itemCount = 0; |
| 81 | this.treeData = treeData; |
| 82 | this.itemColors = itemColors; |
| 83 | this.$mainElem.innerHTML = this._renderFolder(this.treeData, "", false); |
| 84 | this.selectedPath = null; |
| 85 | } |
| 86 | |
| 87 | _unselectAll() { |
| 88 | const $folders = this.$mainElem.querySelectorAll(".tree-folder"); |
no test coverage detected