Collapses a specified row in TreeGrid directive.
|name||String||The value of name attribute of the TreeGrid directive|
|row (optional)||Object||The row to be collapsed|
This method does not return a value.
This method is part of IntegralUITreeGridService. A call to this method will trigger beforeCollapse and afterCollapse events. By handling beforeCollapse event you can prevent collapsing of specified row using your own custom conditions.
An row can also become collapsed by setting the expanded variable of row object to false. However, in this case only afterCollapse event will be fired.
If there is no specified row, all rows in TreeGrid will become collapsed.
Supported in: v1.0.