mirror of
https://github.com/zadam/trilium.git
synced 2025-06-06 18:08:33 +02:00
Updated Events (markdown)
parent
94cfd2dee2
commit
e30a921e31
@ -1,4 +1,4 @@
|
|||||||
In general we may say that [[script|scripts]] note execution is triggered by events.
|
[[Script|scripts]] 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
|
||||||
|
|
||||||
@ -14,8 +14,6 @@ Global events are attached to the script note via label. Simply create e.g. "run
|
|||||||
|
|
||||||
Other events are bound to some entity, these are defined as [[relations|Attributes]] - meaning that script is triggered only if note has this script attached to it through relations (or it can inherit it).
|
Other events are bound to some entity, these are defined as [[relations|Attributes]] - meaning that script is triggered only if note has this script attached to it through relations (or it can inherit it).
|
||||||
|
|
||||||
Note that these are backend events and thus relation need to point to the "JS backend" code note.
|
|
||||||
|
|
||||||
* `runOnNoteCreation` - executes when note is created on backend
|
* `runOnNoteCreation` - executes when note is created on backend
|
||||||
* `runOnNoteTitleChange` - executes when note title is changed (includes note creation as well)
|
* `runOnNoteTitleChange` - executes when note title is changed (includes note creation as well)
|
||||||
* `runOnNoteChange` - executes when note is changed (includes note creation as well)
|
* `runOnNoteChange` - executes when note is changed (includes note creation as well)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user