Docs

Events

Script notes can be triggered by events. Note that these are backend events and thus relation need to point to the “JS backend” code note.

Global events

Global events are attached to the script note via label. Simply create e.g. “run” label with some of these values and script note will be executed once the event occurs.

Entity events

Other events are bound to some entity, these are defined as relations - meaning that script is triggered only if note has this script attached to it through relations (or it can inherit it).