TreeListBase.getNodeIsFirst

Syntax

getNodeIsFirst(nodeKey);

Parameters

nodeKey. Number. Node key.

Description

The getNodeIsFirst method returns whether the specified node is the first in the list.

Comments

The first child is also considered the "first node".

Example

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:

TreeListBase