Rank: Newbie Groups: Member
Joined: 4/13/2011 Posts: 3
|
Is there the possibility via JavaScript to know if a node is the last node in hierarky? For example:
-a node.isLast() -> false --aa node.isLast() -> false --aa node.isLast() -> false ----aaa node.isLast() -> true ----aaa node.isLast() -> true -b node.isLast() -> false --bb node.isLast() -> true
Is there a function like this?
Thankyou in advance
|
Rank: Administration Groups: Administration
Joined: 5/27/2007 Posts: 24,194
|
Hi,
No. You will have to check the parent node's children node count and the node's index to determine whether the node is the last node.
Thanks!
|