mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-28 10:32:27 +08:00
735 B
735 B
Script API
For script code notes, Trilium offers an API that gives them access to various features of the application.
There are two APIs:
- One for the front-end scripts: Frontend API
- One for the back-end scripts: Backend API
In both cases, the API resides in a global variable, api
, that can be used anywhere in the script.
For example, to display a message to the user the following front-end script can be used:
api.showMessage("Hello world.");
Note
Note
The Script API is currently experimental and may undergo changes in future updates.