Menu: Allow custom templates for headers #508
-
Like for regular items, it should be possible to define custom templates for headers in menus. See https://github.com/primefaces/primeng/blob/master/src/app/components/menu/menu.ts#L185 Background: I want to use templates to move the translation logic there instead of the component code (subscribe for language changes): <p-menu [model]="navigationStructure">
<ng-template pTemplate="item" let-item>
<a class="p-menuitem-link flex justify-content-between align-items-center p-3">
{{ item.label | translate }} <!-- THIS -->
</a>
</ng-template>
</p-menu> |
Beta Was this translation helpful? Give feedback.
Answered by
cetincakiroglu
Nov 21, 2023
Replies: 1 comment
-
Thanks for the feedback, we've added it in our internal backlog. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
cetincakiroglu
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Thanks for the feedback, we've added it in our internal backlog.