use for initial entity processing; after this entity will be updated as well (note: the updated entity will be a clone, so keep in mind that references will not be the same)
onReady()
synchronous
use to do stuff when everything is ready
onSaved(entity: EchoObject)
asynchronous
use to do stuff when save succeeds; is called before hide is called
During
Callback
Mode
Meaning
isDirty(entity, initialEntity)
synchronous
use to determine if the entity is dirty
isValid(entity, initialEntity)
synchronous
use for entity validation
Before save
Callback
Mode
Meaning
preprocess(entity)
synchronous
use for entity preprocessing; this is done on entity clone, so we can safely mutate it
Application Restart
Binds to window.showSevenApplicationRestart for access outside Svelte.