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 item elements which have been reordered.
Reorder all the given elements, in the given order, assuming they all belong to the same group.
A sorted list of items located in the same group.
Use the given policy to score and sort the items of all the menus to adapt, and filter out any item which:
The menu manager containing the menus with items to reorder.
The policy to use to score the items.
The data manager containing data for the policy.
A sorted and filtered list of items.
Return the maximum number of items which can be reordered in a menu.
The total number of items in the menu.
The maximum number of items to reorder in the menu.
Return the maximum number of items which can be reordered in a group.
The total number of items in the group.
The maximum number of items to reorder in the group.
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.
Split all the given items by their group, and reorder them group by group (using applyInGroup).
A sorted list of items to reorder.
Generated using TypeDoc
Create a new instance of ReorderItem.