Skip to main content
Dimm1
Aug 6, 2023 5:36 PM UTC
Question

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

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
Aug 6, 2023 8:25 PM UTC

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.

UX/UI designer. Figma expert. Creator and developer of plugins and widgets for Figma and FigJam. Check out my resources in Figma Community: figma.com/@tank