May 27, 2020
Estimated Post Reading Time ~ < 1 Min

How to refresh component through Javascript in Touch UI

All the editable will store at Granite.author.store
You can find editables for your component by using the find method

var cmpEditables = Granite.author.store.find("<component content node path"); <!-- return array of editables -->
var cmp = cmpEditables[0];<!-- get you component editable -->
cmp.refresh(); <!-- refresh you component--->


Or to refresh you can also use
Granite.author.editableHelper.doRefresh(cmp)
aem4beginner.blogspot


By aem4beginner

No comments:

Post a Comment

If you have any doubts or questions, please let us know.

Ad Blocker Detected :(

Please consider supporting us by disabling your ad blocker.

Please Disable your adblocker and Refresh the page to view the site content.