Close the side on breakpoint change.
Closes the sidebar.
If a "level" is given, only existing levels which are higher than the given "level" will be closed. Level count starts at 0.
You can also trigger this method by emit the event "hyloCloseSidebar" with a data object like {level: number}.
Optional
level: numberthe level threshold for closing existing levels (optional)
Opens the sidebar or adds another level to the sidebar.
The "content" will be added to the sidebar.
All already existing levels which are higher than the given "level" will be closed. If the "level" is greater than the current level +1, the level is adjusted to the current level +1. Level count starts at 0.
You can also trigger this method by emit the event "hyloOpenSidebar" with a data object like {content: HTMLElement; level: number}.
the HTMLElement containing the content
the level threshold for closing existing levels (optional)
Fires when the sidebar closed.
Fires when a sidebar layer closed. Emits the amount of layers open.
Fires when a sidebar layer opened. Emits the amount of layers open.
Fires when the sidebar opened.
Generated using TypeDoc
Opens a sidebar. The content of the sidebar is dynamicly provided via the "openSidebar" method call. Supports multiple levels/layers of content.
Adds the class "hylo-sidebar" to the body when open.