mirror of
https://github.com/zadam/trilium.git
synced 2025-10-26 17:18:53 +01:00
10 lines
301 B
Markdown
Vendored
10 lines
301 B
Markdown
Vendored
# 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.
|
|
}
|
|
}
|
|
``` |