mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-2746] Side Navigation - conditionally render group of items (#1197)
* filter groups based on rule * test * update docs
This commit is contained in:
@@ -208,6 +208,34 @@ Navigation definition also supports custom components to be dynamically render.
|
||||
]
|
||||
```
|
||||
|
||||
Navigation items or group of navigation items can be conditional render based on defined rules.
|
||||
|
||||
```json
|
||||
"navbar": [
|
||||
{
|
||||
"id": "custom-group-1",
|
||||
"rules": {
|
||||
"visible": "rule-reference-id"
|
||||
},
|
||||
"items": [ ... ]
|
||||
},
|
||||
{
|
||||
"id": "custom-group-2",
|
||||
"items": [
|
||||
{
|
||||
"id": "itemId",
|
||||
"rules": {
|
||||
"visible": "rule-reference-id"
|
||||
},
|
||||
...
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
For more informations about rules checkout [Rules](../extending/rules.md) section.
|
||||
|
||||
Note that components must be declared as entryComponents under the app module.
|
||||
|
||||
For more information about the content of a custom page see [Document List Layout](/features/document-list-layout) section.
|
||||
|
Reference in New Issue
Block a user