PacemSidebarElement
is a flexible webcomponent that can be easily combined with a normal PacemMenuElement
and that is designed to fit into the themed layout.
As you can see in this page, an instance of sidebar has been plugged into the page, and everything flows along accordingly.
Here's an extract of the markup:
<!-- rootMenu is the id of the app's menu instance -->
<pacem-sidebar open="true" id="sidebar0" on-load="#rootMenu.outset = true; #rootMenu.hideHamburgerButton = true; #rootMenu.hideBackButton = true" on-unload="#rootMenu.outset = false; #rootMenu.hideHamburgerButton = false; #rootMenu.hideBackButton = false">
<!-- content -->
</pacem-sidebar>
PacemSidebarElement
rail can be styled exploiting theme colors:
To ease the arrangement of the content inside the sidebar, feel free to wrap your content with properly styled HTMLNavElement
and children:
<pacem-sidebar>
<!-- content wrapper (nav.pacem-sidebar) -->
<nav class="pacem-sidebar">
<div class="sidebar-start">
<!-- top-aligned content here -->
</div>
<div class="sidebar-end">
<!-- bottom-aligned content here -->
</div>
</nav>
</pacem-sidebar>
To provide the best experiences, we use technologies like cookies to store and/or access device information. Consenting to these technologies will allow us to process data such as browsing behavior or unique IDs on this site. Not consenting or withdrawing consent, may adversely affect certain features and functions.