Events

Our objective is to use the minimum of javascript.

But for now, here are some events that will be useful to you.

Examples

populate

Use to do something if and when the element is generated.

element.addEventListener("populate", event => {
    // Do something when the element is generated.
})

save

Use to do something when a form is successfully saved.

form.addEventListener("save", event => {
   // Do something when the form has been successfully saved.
});