Menu inside table column

UI Components for Angular
Post Reply
rhdtp
Posts: 7
Joined: 24 Mar 2014, 06:28
Contact:

08 Aug 2019, 04:20

Hi! its posible put a menu component inside a column sending a param to backend. By example, something like that:

Code: Select all

<p-table [value]="cars">
    <ng-template pTemplate="header">
        <tr>
          ...
        </tr>
    </ng-template>
    <ng-template pTemplate="body" let-car>
        <tr>
            ...
            <td>
                <p-menu #menu [popup]="true" [model]="items"></p-menu>
               <button type="button" pButton icon="pi pi-bars" label="Show" (click)="menu.toggle($event, car.vim)"></button>
         </td>
        </tr>
    </ng-template>
</p-table>
The param (car.vim) receive it in to backend???

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 3 guests