NodeClick: function (sender, args)
sender. Event source.
args. Event information.
The NodeClick event occurs on clicking a tree node.
To execute the example the HTML page must contain the MetabaseTreeList component named list1 (see Example of Creating the MetabaseTreeList Component). Add a handler for the NodeClick event:
list1.NodeClick.add(function (sender, args) { list1.setMultiSelect(false); console.log(list1.getPathToRoot(list1.getSelectedKeys()[0], false)) })
After executing the example clicking a tree node disables multiple selection, and the browser console displays the array of repository objects that include the selected object.
See also: