collapseAll([index])

Class: Tree.

Description:

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

Parameters:

Name Type Default Description

[index]

Array.<number>

[0]

Index of an item to collapse with all children items. If omitted, all items will be collapsed.

Returns:

Returns this Tree component for method chaining.

Type: Tree