registerOnVisibility, unregisterOnVisibility
Register a callback function for the event of an item changing its
visibility. The returned number is the id of the listener which is
required to unregister the callback.
Demo
-
Register
a callback function for the visibility change.
-
Hide or show items in the tree. The response appears in the text
area.
-
Unregister the callback
function.