Changes the view of the menu.
Should not be used when an automated view change is in progress. Use the "bodyClass" property of the hylo-menu-wrapper component and the update() function instead.
the view id defined by a hylo-menu-wrapper component
Updates the current view. Should be called if the conditions for the displayed view changed without having a change been triggered automaticly.
Also the functions "componentDidActivate", "componentWillDeactivate" and "componentWillReactivate" of the hylo-nav and hylo-router-component respectively are fired after the menu view change got triggered. For any changes done in these functions which affect the menu view, you have to call the update function.
Generated using TypeDoc
The controller for a menu of multiple views.
Manages multiple views of a menu by blending in and out different menu components depending on url/path, breakpoints and/or orientation.
Only one view can be active at the same time. Use multiple hylo-menu-controller components to manage mutliple views visible at the same time.
Create the views by nesting hylo-menu-wrapper components inside a hylo-menu-controller. Only direct hylo-menu-wrapper component children are recognised by the hylo-menu-controller component which makes it possible to place another hylo-menu-controller component inside a hylo-menu-wrapper component to create an even more dynamic menu.
The actual menu components are placed inside the nested hylo-menu-wrapper components.
A hylo-location-listener component must be present in your app for this component to function!
Example of a menu controller: