How to use p-checkbox in a p-column of a p-dataTable?
I try this but my checkbox is already unchecked...
Code: Select all
<p-column field="SMR" [style]="{'width':'60px'}" styleClass="col-button">
<ng-template let-col let-consult="rowData" pTemplate="body">
<p-checkbox value="consult[col.field]"></p-checkbox>
</ng-template>
</p-column>