isVisible(partial: Boolean);
partial. Attribute of partial checking whether the node is visible. If the parameter is set to true then visibility is determined partially.
The isVisible method determines whether the node is visible.
The method returns the value true if the node is visible, false if it is out of the scope and null if the node is hidden or filtered.
To execute the example, the page must contain the TreeList component named «treeList» (see Example of Creating the TreeList Component). Determine whether the node with the Africa contents is visible:
// Determine whether the node with the Africa contents is visible if (nodeAfrica.isVisible()) { console.log("Node with the Africa contents is visible"); } else { console.log("Node with the Africa contents is not visible"); }
As a result console displays the result of the node visibility checking:
Node with the Africa contents is visible
See also: