The menu manager instance to use.
Indicate whether to display the visual controls
or not (visible on true
).
Version of the library.
Adaptation manager single instance of the library.
Data manager single instance of the library.
Menu manager single instance of the library.
Visual controls single instance of the library.
Add a new adaptive menus, and update the current adaptation.
The menu to add.
Clear all the recorded history, and update the current adaptation.
Remove the adaptive menu with the given menu ID, and update the current adaptation. If there is no match for the given ID, nothing happens.
The ID of the menu to remove.
Create a new instance of SAM from generic menu and item selectors.
The menu node will also be the item group node. Item nodes are only searched inside the menu node.
Selector of the menu (and group) node.
Selector of all item nodes.
A new instance of SAM.
Create a new instance of SAM from generic 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 all group nodes.
Selector of all item nodes.
A new instance of SAM.
Create a new instance of SAM from specific selectors. See MenuSelectors for details on the expected structure of 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.
Structure of selectors of menu, group and item nodes.
A new instance of SAM.
Create a new instance of SAM from standard class selectors:
The menu node cannot be a group node itself (use fromSelectors). Group nodes are only searched inside the menu node. Item nodes are only searched inside the group node.
A new instance of SAM.
Generated using TypeDoc
Create a new instance of SAM. This constructor is mainly meant for internal use only: for external uses, use static builder methods instead.
Note: no more than one instance should be instanciated at the same time; running more at once may result in unexpected behaviours.