Re render traits after certain events (e.g click)
Question
How to re render traits after clicking on buttons ? Note : Re-rendering should not be dom modification.
I have created a function that would render trait by calling the render() inside createInput()
Is there any way to re-render the traits with the newer and updated dom string which was first created on createInput() ?
Answers (1)
createInput is called once, if you want to update the UI of your trait, rely on onUpdate which is called every time the selection is changed.
ps. please avoid using Issues for questions, check the Discussions tab
Related Questions and Answers
Continue research with similar issue discussions.
Issue #1227
Re-render view in editor's canvas whenever Trait value changes
Is there any possible way in grapesjs that whenever a user changes the value of a Trait of a custom component the render function should li...
Issue #1886
How to create Drop down for the button inside a panel?
I'm trying to create a dropdown while clicking a button. I can append the data using ul, li to a button. Other than that any other way is t...
Issue #2300
[QUESTIONS] How to change order of categories?
I saw the changes done by @JuanTincho of adding the "Order" attibute but I was able of adding it only on new categories created. I started...
Issue #2046
[QUESTIONS] How to disable Scripts inside the editor?
Hi @artf , I need to disable all the scripts (component scripts and other scripts) inside the editor, and scripts should run only when we c...
Paid Plugins That Match This Issue
Curated by issue keywords and label relevance to help you ship faster.
Loading paid plugin recommendations...
Browse Plugin Categories
Jump directly to plugin category pages on the marketplace.