Issue
Any idea how to programmatically select an item in a primeng p-menu? Code is straightforward:
<p-menu #menu [popup]="true" [model]="configMenuItems" appendTo="body" [style]="{'text-align': 'left'}"></p-menu>
<button type="button" class="btn btn-link" pTooltip="Select Site" tooltipPosition="left" onclick="this.blur();" (click)="menu.toggle($event)">
{{selectedSite.DisplayName}}
<span class="caret"></span>
</button>
Solution
Judging by the lack of answers and the lack of documentation, I switched to using a p-dropdown instead.
Answered By - Michael Witt
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.