ON COLLAPSE block

The ON COLLAPSE block is executed when a tree view node is collapsed (i.e. closed).

This data block is used to implement dynamic trees in a DISPLAY ARRAY, where nodes are removed from view by the user closing or collapsing them.