Template view functions

Here will be an over view list over all template views that you can use.

This guide is not complete and more will come.

eventOnload

This will ensure that the script inside the eventOnload will execute after the component has been executed.

this.eventOnload(() => {
    // Your code here
});

update

You can trigger this.update function inside a view to update the component views content.

this.update();

setElement

You can set a new or change the current expected Main element inside your template view.

this.setElement("#your-element");

Last updated