Skip to content

How to programatically re-render a render note from script #2106

Discussion options

You must be logged in to vote

For now I've just moved my initialization/rendering (which adds a bunch of HTML to the container element in my render note) into a function and added a container.innerHTML = ''; in it to clear the component every time the function is called, and whenever I want to "refresh" the widget I just call the function again and it re-draws everything.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by MorganeLeCaignec
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant