Skip to main content

SidebarPlugin

Use sidebar as primary site and entity navigation.

Passing views

Simply pass viewConfig as ViewSelectorItems through items attribute.

"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "SidebarItem 1",
"viewConfig": {}
}
]

Using icons

ViewSelectorItems can also include eds icons before label. Simply pass the name of the icon in the eds_icon field.

"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "SidebarItem 1",
"eds_icon": "home",
"viewConfig": {}
}
]

subItems / nested views

Every ViewSelectorItem can also receive subItems which allows you to pass viewConfigs and nest views.

"items": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "SidebarItem 1",
"subItems": [
{
"type": "PLUGINS:dm-core-plugins/view_selector/ViewSelectorItem",
"label": "Sub Item 1",
"viewConfig": {}
}
],
"viewConfig": {}
}
]