mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
14 lines
273 B
Markdown
Vendored
14 lines
273 B
Markdown
Vendored
# Options
|
|
## Read an option
|
|
|
|
Add the import to the service (make sure the relative path is correct):
|
|
|
|
```javascript
|
|
import options from "../../services/options.js";
|
|
```
|
|
|
|
Them simply read the option:
|
|
|
|
```javascript
|
|
this.firstDayOfWeek = options.getInt("firstDayOfWeek");
|
|
``` |