mirror of
https://github.com/zadam/trilium.git
synced 2026-02-06 05:44:27 +01:00
302 B
302 B
Refresh widget with option change
To make a widget react to a change of a given option, simply add the following to the widget:
async entitiesReloadedEvent({loadResults}) {
if (loadResults.getOptionNames().includes("firstDayOfWeek")) {
// Do something.
}
}