I didn't find any info about how t set all cells editable by default in template.
My template:
<p-table
#docDataTable
[value]="dataValues.values"
dataKey="id"
[lazy]="true"
[paginator]="false"
[rows]="2"
[totalRecords]=""
[sortField]="'createdOn'"
[sortOrder]="-1"
scrollHeight="calc(100% - 10px)"
[style]="{width:'100%'}"
editMode="row"
[responsive]="true"
[columns]="tableColumns">
<ng-template pTemplate="body" let-rowData let-columns="tableColumns" let-editing="editing"
let-rowIndex="rowIndex">
<tr [pEditableRow]="rowData">
<td *ngIf="dataValues" class="ellipsis" pEditableColumn>
<p-cellEditor>
<ng-template pTemplate="input">
<editor
class="document-tag__editor"
[(ngModel)]="rowData.description"
[init]="{
base_url: '/tinymce',
suffix: '.min',
inline: true,
height: 500,
menubar: false,
toolbar:
'subscript superscript'
}"></editor>
</ng-template>
<ng-template pTemplate="output">
{{removeAllHtmlTagsFromString(rowData.description) | truncateValue: 40}}
</ng-template>
</p-cellEditor>
</td>
Is it possible? I don't want to click on a cell first to enable edit mode... Edit mode should be enabled by default... I know how to do that in component/programatically, but it works slowly:
this.dataValues.values.forEach(row => this.docDataTable.initRowEdit(row));