mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-27 18:12:29 +08:00
10 lines
301 B
Markdown
10 lines
301 B
Markdown
# Refresh widget with option change
|
|
To make a widget react to a change of a given option, simply add the following to the widget:
|
|
|
|
```javascript
|
|
async entitiesReloadedEvent({loadResults}) {
|
|
if (loadResults.getOptionNames().includes("firstDayOfWeek")) {
|
|
// Do something.
|
|
}
|
|
}
|
|
``` |