Replies: 2 comments 1 reply
-
For example, this frontend script does what i want, but so far i can only call it by manually executing the script (I don't see a way to call this when the note is changed):
|
Beta Was this translation helpful? Give feedback.
-
It can be done using custom widgets. This is not really documented / part of the script API, but widgets receive events: You can find many other examples in the codebase of handling the Given you don't need UI, just render an empty |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Currently the documentation seems to indicate that all existing triggers must be tied to a backend script (not frontend).
I'm trying to create a script that runs when the frontend tries to sync a note change (like
runOnNoteChange
but on the frontend).My idea is to update the note label with the ip address of the client that made the change (it seems like only the frontend could determine it's own ip).
Would this be possible with the existing events/functionality of Trilium?
Beta Was this translation helpful? Give feedback.
All reactions