collapseAll([index])

Class: Tree.

Description:

Collapses all items or a specified item and all if its children. If argument is not supplied, root is used by default.

Parameters:

Name Type Description

[index]

Array.<number>

Item which to collapse with all children items. If omitted, all items will be collapsed.

Returns:

Returns this Tree component for method chaining.

Type: Tree