Tree.Node.Sortable Class
Tree.Node
extension that adds methods useful for nodes in trees that use the
Tree.Sortable
extension.
Constructor
Tree.Node.Sortable
()
Index
Methods
Methods
sort
-
[options]
Sorts this node's children.
Parameters:
-
[options]
Object optionalOptions.
-
[silent]
Boolean optionalIf
true
, nosort
event will be fired. -
[sortComparator]
Function optionalCustom comparator function to use. If specified, this will become the node's new comparator function, overwriting any previous comparator function that was set for the node.
-
[sortReverse]
Boolean optionalIf
true
, children will be sorted in reverse (descending) order. Otherwise they'll be sorted in ascending order. This will become the node's new sort order, overwriting any previous sort order that was set for the node. -
[src]
String optionalSource of the sort operation. Will be passed along to the
sort
event facade.
-