Skip to main content
Question

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

  • August 6, 2023
  • 1 reply
  • 382 views

Dimm1

Hey!

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?

This topic has been closed for replies.

1 reply

tank666
  • August 6, 2023

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.