Skip to main content

Configuration

📄️ The on_click property

The onclick property allows one to attach click actions to specific sidebar items. These actions will be triggered every time that the sidebar item containing an onclick property is clicked. The onclick property doesn't stop redirecting to a dashboard or to an external page if it is provided together with an href property. But if the href property is # (or it is just omitted in new items), then the onclick action will be executed without redirecting to any dashboard or external page.

📄️ Exceptions

You can define user/device-specific options using the exceptions feature. Creating an exception basically means starting a new configuration different from the main one when certian matchers match. If multiple exceptions match with the current user/device, then they are merged from top to bottom creating a new configuration and if they have an order property, it will be merged too. As well as in the main configuration, it is possible to extend from extendable configurations using the extend_from advanced configuration option. Consult the Extendable Configurations section to know how two or more configurations are merged together.