Tree Control: onSelect Callback as a Function

This example shows how to use a function to allow/deny access to tree nodes.