mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-07-24 17:31:52 +00:00
[ACA-2322] Sidenav - support dynamic components (#1066)
* dynamic components support * subscribe to sidenav selector * update module for extension * sidenav selector * support dynamic components definistion * update docs * stabilise tests * Update src/app/components/sidenav/sidenav.module.ts Co-Authored-By: pionnegru <pionnegru@users.noreply.github.com> * Update src/app/components/sidenav/sidenav.module.ts Co-Authored-By: pionnegru <pionnegru@users.noreply.github.com> * rename selector
This commit is contained in:
committed by
Denys Vuika
parent
bbdf3a9b27
commit
5bf77dfc81
@@ -186,4 +186,28 @@ Map the `/custom-route` in `app.routes.ts` as a child of `LayoutComponent` defin
|
||||
|
||||

|
||||
|
||||
### Rendering custom components
|
||||
|
||||
Navigation definition also supports custom components to be dynamically render. The schema for this is as follows:
|
||||
|
||||
```json
|
||||
"navbar": [
|
||||
{
|
||||
"id": "app.navbar.primary",
|
||||
"items": [
|
||||
...
|
||||
|
||||
{
|
||||
"id": "custom-component",
|
||||
"component": "custom-menu-item"
|
||||
}
|
||||
|
||||
...
|
||||
]
|
||||
}
|
||||
]
|
||||
```
|
||||
|
||||
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