Issue #522💬 AnsweredOpened November 14, 2017by krunal0390 reactions

Model Html Issue

Quick answerby artf

You can trigger your actions on render...

Read full answer below ↓

Question

#513 Sorry for opening new issue but you have closed last one so had to create new one, I am struggling with below so if you can help to resolve or guide me at sample code that would be great, or if you have quick 5 mins and create small codepen would be good, really appreciate your help. I tried you suggested but still model is not updated on child components, it only return default values set when component render. now it generate below html but does not update property correctly.

Answers (3)

artfNovember 15, 2017

You can trigger your actions on render...

...Inside your model
init() {
 ....
}
updateAllStuff() {
     this.updateTitle();
     this.updateHoverText();
     ...
}

...Inside your view
render(...args) {
     ...
     this.model.updateAllStuff();
    return this;
}
krunal039November 15, 2017

@artf I tried bust still no luck, can you please create small sample if that is possible?

lock[bot]September 18, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.