SelectionChanged: function (sender, args);
sender. Event source.
args. Event information.
The SelectionChanged event is fired on changing selection in the tree.
To execute the example, create a service for working with time series, create a component that will show hierarchy of time series database named maTree (see MetaAttributeTree Constructor), and add the following code in the SCRIPT tag:
maTree.SelectionChanged.add(function(sender, args){console.log("Selection is changed")}); //Fire tree selection change event maTree.SelectionChanged.fire(maTree, {});
After executing the example, tree selection change event is fired and the browser console displays an appropriate message.
See also: