Stratox
Template engine
Template engine
  • Stratox.js - Template engine
  • Installation
  • Template engine
    • Basic example
    • Show views
    • Create views
    • Updating views
  • Form builder
    • Form builder
    • Custom form template
  • Advanced features
    • Container
    • Template view functions
  • Issues
Powered by GitBook
On this page
  1. Advanced features

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");
PreviousContainerNextIssues

Last updated 5 months ago