I have a primeng table (the new module) with editable cells displaying simple data. Outside the table I have a button to add new empty objects/rows to the table and I would like to jump to edit mode in the new cell programmatically when the button is clicked.
I am able to add the empty row to the table but I have no idea how to switch the new row cell element into edit mode.
I am getting the EditableColumn like this: @ViewChild(EditableColumn) editableColumn: EditableColumn;
...
<td *ngFor="let col of columns" style="width:150px;height: 27px" #td pEditableColumn>
...
On the editableColumn
I am able to call the openCell() method but it always jumps to the first generated cell and not to the new generated row cell.
Can anyone help with this? Are there any better approaches to achieve my goal?