We've looked at selecting a row in an ojTable, by making use of
the "beforecurrentrow" event callback as an ojComponent binding
property. Let's do the same now for an ojTree, again in a custom
module, i.e., using a 'define' block instead of a 'require' block
as done in the Oracle JET Cookbook.
For this simple scenario, whenever a node is selected, an H2
below the tree appears, showing information about the current
selection, i.e., you can see above that 'News' is selected...