Refresh widget render on note attribute change? #2918
Answered
by
zadam
nicollasricas
asked this question in
Q&A
-
Hey, @zadam, Is there a way to refresh widget render on note attribute change? Thanks! |
Beta Was this translation helpful? Give feedback.
Answered by
zadam
Jun 13, 2022
Replies: 1 comment
-
Hi, yes, this can be done like this: https://github.com/zadam/trilium/blob/master/src/public/app/widgets/editability_select.js#L87-L91 Every widget receives an event on every update, widget then decides whether it needs to refresh or not. |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
nicollasricas
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi, yes, this can be done like this:
https://github.com/zadam/trilium/blob/master/src/public/app/widgets/editability_select.js#L87-L91
Every widget receives an event on every update, widget then decides whether it needs to refresh or not.