List of all the menu groups.
Unique ID of the element. It should be computed once, before any adaptation, using getID method.
Node of the element.
null
since a menu always has no parent.
Selector used to find the node. If no selector was used, it should be set to NO_SELECTOR.
Type of menu element.
Standard HTML class for menu elements.
Prefix of all tags added to nodes by SAM. It acts as a sort of HTML attribute namespace.
Fill the menu with groups and items according to the specification of the variant of fromSelectors with three arguments.
This method is meant for internal use only (see fromSelectors).
Selector of the group nodes.
Selector of the item nodes.
Fill the menu with a single group and items according to the specification of the variant of fromSelectors with two arguments.
This method is meant for internal use only (see fromSelectors).
Selector of the item nodes.
Fill the menu with groups and items according to the specification of the variant of fromSelectors with one argument.
This method is meant for internal use only (see fromSelectors).
Object of item selectors indexed by their parent group selectors.
Return a list of all the menu item nodes.
A list of all item nodes.
Return a list of all the menu items.
A list of all items.
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.
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.
Create a menu from the given menu and item selectors. It will only have one group, whose node will be the same as the menu node.
Item nodes are only searched inside the menu node.
Selector of the menu node.
Selector of the item nodes.
A new instance of Menu.
Create a menu from the given menu, group and item selectors.
The menu node must not be a group node itself (see the variant of fromSelectors with two arguments instead).
Group nodes are only searched inside the menu node. Item nodes are only searched inside the group node.
Selector of the menu node.
Selector of the group nodes.
Selector of the item nodes.
A new instance of Menu.
Create a menu manager from the given specific selectors.
Each key of descendantSelectors
must be a group selector,
and each related value must be the selector of the group items.
The menu node must not be a group node itself (see the variant of fromSelectors with two arguments instead).
Group nodes are only searched inside the menu node. Item nodes are only searched inside the group node.
Selector of the menu node.
Object of item selectors indexed by their parent group selectors.
A new instance of Menu.
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
Creates a new instance of menu.