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)">
    <span class="caret"></span>


answered 6 months 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