How to programmatically select item in primeng p-menu?

Mike Witt Source

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>
angularprimeng

Answers

answered 5 days ago Mike Witt #1

Judging by the lack of answers and the lack of documentation, I switched to using a p-dropdown instead.

comments powered by Disqus