Reusable sidebar
Last updated
Was this helpful?
Last updated
Was this helpful?
Reusable sidebar serves as a navigation bar in your application. The sidebar can be customized according to your requirements, and it saves its state across all the application pages so you don't have to add it to each page separately.
Triggers allow you to launch certain actions based on different events.
On Init
Calls for an action on component initialization
On Expand
Calls for an action when component is expanded
On Collapse
Calls for an action when component is
collapsed
To activate the sidebar in your application, access the Settings sidebar of the current page (click on the app area or select the page in the Pages tab), and select the Show global app sidebar checkbox.
You can configure sidebar content and appearance using the following parameters:
Expand content to fit - select this option if you want your component (for example, Menu) to occupy all available space inside the sidebar (works with single component only). Check out this article to learn more about the feature.
Sticky sidebar - select this option to make sure the sidebar stays in the same place while users are scrolling down the page
Width - in pixels
Background color
Disable container styles - select to disable all styles or specific ones if you want the sidebar to look more like part of the page and not a separate container
To configure sidebar navigation, you can simply drag and drop components inside it, for example, the Menu component. From there, you can configure additional in-app or external navigation if needed.