The node of the element.
The selector used to find the element node.
The parent menu.
A list of the group items.
Flag indicating whether the item can be reordered or not.
Unique ID of the element. It should be computed once, before any adaptation, using getID method.
List of all the group items.
Node of the element.
Menu element owning the item.
Selector used to find the node. If no selector was used, it should be set to NO_SELECTOR.
Type of group elements.
Standard HTML class for group elements.
Prefix of all tags added to nodes by SAM. It acts as a sort of HTML attribute namespace.
Create item from the given selector, and add them all to the group.
Item nodes are only searched inside the group node.
The selector for all item elements.
Call nodeToSelector on the element node.
The element selector.
Call getNodeTag on the element node.
The name of the tag (without the prefix).
The value of the tag, or undefined
if the tag was not found.
Test whether the group items are alphabetically sorted. Character case and punctation are ignored (see localCompare details).
true
if they are sorted, false
otherwise.
Add a tag to the element node, i.e. an prefixed HTML attribute. Note: the prefix is automatically prepended to the tag name.
The name of the tag (without the prefix).
The value of the attribute.
Update the reordering constraints of all the group items, such that:
Create a group from the given selectors.
If NO_SELECTOR
is passed to groupSelector
,
the group node will be equal to the node of its parent menu.
Selector of the group node, or NO_SELECTOR
flag.
Selector of the item nodes.
The menu containing this group.
A new instance of ItemGroup.
Get the value of a tag of the given node. Note: the prefix is automatically prepended to the tag name.
The tagged node (with the attribute).
The name of the tag (without the prefix).
The value of the tag, or undefined
if the tag was not found.
Return a standalone jQuery string selector for the given node,
i.e. $(<selector>)
should select the node.
The selector is built recursively, in the following way:
body
or html
node, it returns the related tag selector;>
);
(2) the node tag;
(3) the node positional selector (:eq(<index>)
).The node to represent with a selector.
The standalone selector.
Generated using TypeDoc
Create a new instance of group.
If the given node has the Reorder.NON_REORDERABLE_ELEMENT_CLASS class, the group will be marked as non-reorderable.