void onCollapse (ListItem item)
An event-handler callback function, called when the user collapses (closes) an expanded node in the treeview.