I have this code snippet of a table with items. After I select my items I want to pass them to my function. It it possible do it in the html?
<p-table [value]=items>
<ng-template pTemplate="body" let-item>
<tr [pSelectableRow]="item">
<td>
<p-tableCheckbox
[pSelectableRow]="applicationProject"
[value]="item"
></p-tableCheckbox>
</td>
<td class="cell-breakWord">
{{ item.name }}
</td>
<td>{{ item.id }}</td>
...
</tr>
</p-table>
<p-button (onClick) = "function(selectedItemsIWantToPass)">Button</p-button>