0.0.1 • Published 2 years ago

whatwhywhenandwho-seven v0.0.1

Weekly downloads
-
License
-
Repository
-
Last release
2 years ago

seven

Generic Overview

Exported Functions

SignatureDescription
async addItem()shows the add item form

Slots

SlotDescription
headerheader template
itemitem template

Generic Details

Properties

PropertyMeaning
entity: EchoObjectthe entity we're working with
addMode: booleansignals that we're in the add mode
editMode: booleansignals that we're in the edit mode
ready: booleansignals that the component is fully ready

Callbacks

Listed in order as called. All are optional.

On load

CallbackModeMeaning
async preload()asynchronoususe for additional preloading
processInitialEntity(initialEntity: EchoObject)synchronoususe 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()synchronoususe to do stuff when everything is ready
onSaved(entity: EchoObject)asynchronoususe to do stuff when save succeeds; is called before hide is called

During

CallbackModeMeaning
isDirty(entity, initialEntity)synchronoususe to determine if the entity is dirty
isValid(entity, initialEntity)synchronoususe for entity validation

Before save

CallbackModeMeaning
preprocess(entity)synchronoususe 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.