Re render traits after certain events (e.g click)
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() ?
artf
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
GJSBlock
Thanks for reporting this, @iabhiyaan. Great question about Re render traits after certain events (e.g click). The recommended approach with GrapesJS is to use the event-driven API. Start here: Check the GrapesJS documentation for your spe...