Files
Trilium/docs/Developer Guide/Developer Guide/Development and architecture/Options/Trigger UI refresh.md
2025-06-17 13:05:20 +02:00

315 B
Vendored

Trigger UI refresh

Call utils.reloadFrontendApp, but make sure to wait for the option to be saved first.

this.$backgroundEffects.on("change", async () => {

    await this.updateCheckboxOption("backgroundEffects", this.$backgroundEffects);

    utils.reloadFrontendApp("background effect change");

});