Introducing ReUI:Open-source UI components and apps built with React, Next.js and Tailwind CSS
Browse ReUI

Angular -> Demo 1 -> Dynamic Aside Menu Configuration


Hello,
First of all congratulations for the great work on Metronic.
I'm using the Demo 1 version of Angular, and I would like to know if it's possible for you to add a dynamic configuration for the aside menu in which it was only necessary to add an array with items with the title, translation, page, etc, and with this configuration the aside menu was generated.
I'm asking this because Metronic 7 has this dynamic aside menu config, and I loved it. Is it possible to add for Metronic 8?

Thank you very much,
Luís Campos


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (5)


hello ..
there is any update ? looking to use dynamic aside menu in metronic 8 demo1



Hello,
I think not. I built my own dynamic component that reads from a config. The component looks like this:

```ts
<ng-container *ngIf="menuConfig && menuConfig.items">
<ng-container *ngFor="let item of menuConfig.items">
<ng-container
*ngIf="item.type === 'section'"
[ngTemplateOutlet]="menuItemSectionTemplate"
[ngTemplateOutletContext]="{ item }"
></ng-container>
<ng-container
*ngIf="item.type === 'separator'"
[ngTemplateOutlet]="menuItemSeparatorTemplate"
></ng-container>
<ng-container
*ngIf="item.type === 'level1'"
[ngTemplateOutlet]="menu1LevelTemplate"
[ngTemplateOutletContext]="{ item }"
></ng-container>
</ng-container>
</ng-container>

<ng-template #menu1LevelTemplate let-item="item">First Item</ng-template>

<ng-template #menu2LevelTemplate let-item="item">Second Item</ng-template>

<ng-template #menuItemSeparatorTemplate>
<div class="menu-item">
<div class="menu-content">
<div class="separator mx-1 my-4"></div>
</div>
</div>
</ng-template>
```



can you explain it more it will be helpful for me as I also have to implement it



Hi,

Thank you for your warm words.
About Dynamic Aside Menu, we don't have this in version 8, but for sure, it will be implemented in the next updates. Right now can't give you ETA, but the task is already in our backlog.

Regards,
Keenthemes support



Thank you very much for the reply, I'll be waiting.
Good work!


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(