How can I refresh/re-render a widget via Property Menu?


I’m currently developing a widget that is based on pages inside of a file that will create an “index page”

And I want to add a “refresh” button in my property menu to re-render the widget, but I didn’t find any way to do so in the documentation, and if I use the widget.register(widget) inside the function I receive an error

Is there any right way to write code that will re-render the widget?

I don’t know what your code looks like, but you can call the necessary function that gets the required data and sets the states for the widget’s components.