I am using primeng table and want to make a column editable on a button click. However I am unable to do this. I don't know which property I have to set in order to toggle editing. Please help. Thanks in advance.
Here is my template:
<ng-template pTemplate="body" let-rowData let-state let-expanded="expanded" let-columns="columns" >
<tr>
<td pEditableColumn>
<p-cellEditor>
<ng-template pTemplate="input">
<input pInputText type="text" [(ngModel)]="rowData.id">
</ng-template>
<ng-template pTemplate="output">
{{rowData.id}}
</ng-template>
</p-cellEditor>
</td>
</tr>
</ng-template>