Adds an event handler that runs just after a save.
The onAfterSave()
function allows you to optionally perform actions
right after a save()
operation. When you call save()
, the
callback is run after the save has successfully completed.
Calling onAfterSave()
on a read-only dataset causes an error.
handler(itemBeforeSave: object, itemAfterSave: object): void
The after save event handler.