getNodeIsFirst(nodeKey);
nodeKey. Number. Node key.
The getNodeIsFirst method returns whether the specified node is the first in the list.
The first child is also considered the "first node".
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Get whether the node is the first Tree.getNodeIsFirst(2); // -> false
After executing the example it is obtained whether the node with the 2 key is the first.
See also: