new SimpleTree()
modules/menu/basic/simpleTree.js, line 6
SimpleTree extends the listViewMain class to create and manage a classic tree view.
Handles events, rendering, and interaction with the tree structure.
Extends
- listViewMain
Methods
-
staticSimpleTree.addItems(models){void}
modules/menu/basic/simpleTree.js, line 189 -
Adds items (folders and layers) to the tree view.
Name Type Description modelsArray The models to be added to the tree. -
staticSimpleTree.checkFolderFilter(folderModel, filterString){boolean}
modules/menu/basic/simpleTree.js, line 288 -
Checks if a folder contains elements that match the filter criteria.
Name Type Description folderModelObject The folder model to check. filterStringstring The string to filter by. Returns:
if the folder matches the filter, false otherwise.
-
staticSimpleTree.handleFixedTree(){void}
modules/menu/basic/simpleTree.js, line 351 -
Handles the fixed tree behavior, ensuring the tree menu button cannot close the tree when it is fixed.
-
staticSimpleTree.hasMatchingParent(model, searchTerm){boolean}
modules/menu/basic/simpleTree.js, line 313 -
Checks if a model's parent matches a given search term.
Name Type Description modelObject The model to check. searchTermstring The search term to match against the parent. Returns:
if the parent matches the search term, false otherwise.
-
staticSimpleTree.initialize(isReload){void}
modules/menu/basic/simpleTree.js, line 32 -
Initializes the SimpleTree instance, sets up event listeners, and renders the tree structure.
Name Type Description isReloadboolean Indicates if the tree is being reloaded. -
staticSimpleTree.removeLayerById(id){void}
modules/menu/basic/simpleTree.js, line 270 -
Removes a layer by its ID and updates the tree view.
Name Type Description idstring The ID of the layer to be removed. -
staticSimpleTree.renderFilterField(){void}
modules/menu/basic/simpleTree.js, line 178 -
Renders the filter field for the tree view.
-
staticSimpleTree.renderSubTree(parentId, firstRender){void}
modules/menu/basic/simpleTree.js, line 103 -
Renders the sub-tree for a given parent ID. Applies filtering if necessary and handles folder expansion.
Name Type Description parentIdstring The ID of the parent node. firstRenderboolean Indicates if this is the first render. -
staticSimpleTree.renderTree(firstRender){void}
modules/menu/basic/simpleTree.js, line 78 -
Renders the tree structure, including all sub-trees and the filter field.
Name Type Description firstRenderboolean Indicates if this is the first render. -
staticSimpleTree.setAllDescendantsInvisible(parentId){void}
modules/menu/basic/simpleTree.js, line 225 -
Sets all descendant elements of a node to be invisible.
Name Type Description parentIdstring The ID of the parent node. -
staticSimpleTree.setAllDescendantsVisible(parentId){void}
modules/menu/basic/simpleTree.js, line 252 -
Sets all descendant elements of a node to be visible.
Name Type Description parentIdstring The ID of the parent node. -
staticSimpleTree.setVisibleByParentIsExpanded(parentId){void}
modules/menu/basic/simpleTree.js, line 207 -
Sets visibility of child elements based on the parent's expansion state.
Name Type Description parentIdstring The ID of the parent node.