childCount([index])
Class: Tree.
Description:
Returns the amount of child nodes under the node specified by index argument.
Parameters:
| Name | Type | Description |
|---|---|---|
|
|
Array.<number> |
Index path of an item in question. Default is the root item. |
Returns:
Returns a number of child items the specified item has, or undefined if the index doesn't point to an item.
Type: number | undefined
