I just changed:
from:
Code: Select all
<td>{{rowData.vin}}</td>
Code: Select all
<td pEditableColumn style="text-align: right">
<p-cellEditor>
<ng-template pTemplate="input">
<input pInputText type="text" [(ngModel)]="rowData.vin" style="text-align: right">
</ng-template>
<ng-template pTemplate="output">
{{rowData.vin}}
</ng-template>
</p-cellEditor>
</td>
Code: Select all
selectionMode="single" [(selection)]="selectedCar"
Code: Select all
<p-table>
Code: Select all
[pSelectableRow]="rowData" [pEditableRow]="rowData"
Code: Select all
<tr>
and I noticed that the input goes white and "disappears".
The Table normally:
So, when I click at vin column:
If I double click the input: