JavaScript UI Libraries & Blazor Components Suite – Smart UI › Forums › Menu & Tree › static text in smart-menu › Reply To: static text in smart-menu
August 6, 2020 at 9:24 am
#100960
Member
Hi peter.jak,
A possible solution is to create an Angular Component with the AsyncPipe like the one shown here and create/append it dynamically to the target Smart.MenuItem
when the Smart.Menu
is ready. This should be done on ready because custom elements generate their inner HTML structure dynamically. Binding to onReady
is as simple as binding to onClick:
<smart-menu-items-group (onReady)="handleReady($event)">...</smart-menu-items-group>
.
Best Regards,
Christopher
Smart HTML Elements Team
https://www.htmlelements.com