How to start with an empty sidebar
· One min read
When you are going to create a configuration for a user, one possible approach is to start hiding the items that this user doesn't need. But what happens when we want to hide everything and just display a few items for that user? In would be a hassle to write item by item with a hide
property. It is better if we hide everything and just show what we want visible.
hide_all
With this option it is possible to hide all the items from the sidebar, and just start to show the ones that we want to make visible. The next example hides all the items from the sidebar but the Dashboard
item.
- YAML
- JSON
<config directory>/www/sidebar-config.yaml
hide_all: true
order:
- item: dashboard
hide: false
<config directory>/www/sidebar-config.json
{
"hide_all": true,
"order": [
{
"item": "dashboard",
"hide": false
}
]
}