Map from HTML parent elements to JQuery children nodes, in their original order. This is used to save the original element ordering.
HTML class of items or groups whose nodes must not be reordered.
Such elements are flagged accordingly when they are created (see Item.canBeReordered and ItemGroup.canBeReordered).
HTML class of group elements which have been reordered.
Use the given policy to score and sort the groups of all the menus to adapt, and filter out any group which:
The menu manager containing the menus with groups to reorder.
The policy to use to score the groups.
The data manager containing data for the policy.
A sorted and filtered list of groups.
Reorder all given elements in the given order.
Non-given elements may be moved to a higher index if need be, except for elements marked as non-reorderable.
This method expects a complete list of menu adaptive elements, supposedly computed by a policy. It was designed to be called by implementations of AdaptationStyle.apply.
The sorted list of elements to reorder.
Save the original order of all children of all the nodes of the given adaptive elements.
The order is saved by saving an array of references to all the children(as jQuery nodes) in their original orders.
The adaptive elements whose children order must be saved.
Generated using TypeDoc
Create a new instance of ReorderGroups.