'PrimeNG: 13.4.0 p-table onEditComplete No event fired
I am using the p-table module from PrimeNG to create an editable grid in my webpage. In the p-table right most column, there are "pencil" icons to allow editing of each row. Pressing this icon opens a single row editor. When I press the next row's pencil icon, I immediately move to the next row. The onEditComplete event does not fire regardless of any changes I've made to the row. I would like to have an event trigger when I leave the row, so that I can show a message to the user and have them save the row edit changes.
This is the component.html:
<p-table #dt
[value]="lines"
[paginator]="true"
[pageLinks]="3"
[rows]="10"
[showCurrentPageReport]="true"
dataKey="supplierSku"
editMode="row"
class="p-datatable p-datatable-sm"
[rowsPerPageOptions] ="[10,50,100, {showAll: 'All'}]"
(onPage)="setPagination($event)"
(onEditComplete)="onEditComplete($event)"
In component.ts, I have an onEditComplete method:
onEditComplete(event) {
this.messageService.add({ severity: 'success', summary:
'Success', detail: 'Completing Row Edit!' });
console.log('In onRowEditComplete!!!');
}
Solution 1:[1]
why don't you use quit() instead of shutdown
def stop():
print("exit 1")
quit()
print("exit 2")
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Emeka Boris Ama |
