SortChanged: function(sender, args);
sender. Event source.
args. Event information:
Node. String. Node key.
Column. Number. Column index.
Direction. PP.Ui.TreeSortDirection. Sorting direction.
Method. PP.Ui.TreeSortMethod. Sorting method.
The SortChanged event occurs after changing sorting.
Executing the example requires the SimpleTreeList component with the Tree identifier (see Example of Creating the SimpleTreeList Component).
// Set event Tree.SortChanged.add( function(sender, args) { console.log("SortChanged event:"); console.log(args); }); // Initialize event Tree.setSort(0, PP.Ui.TreeSortDirection.Asc, PP.Ui.TreeSortMethod.String);
After executing the example the SortChanged event is added.
See also: