Table Row Editing and validation before Save

UI Components for Angular
Post Reply
vega3000
Posts: 3
Joined: 01 Jul 2016, 17:42

10 Nov 2022, 20:50

In the documentation for Row Editing Table, it says " Note that pSaveEditableRow only switches the row to back view mode when there are no validation errors".

How to stay on editing mode if my something is invalid ? I don't see anything for validation errors.
Example :

Code: Select all

onRowEditSave(model: MyModel) {
if(!model.validate()) {
 // STAY IN EDITING MODE; I don't want to close the editing mode
}
}
Tx

Post Reply

Return to “PrimeNG”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests