May 27, 2020
Estimated Post Reading Time ~

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)


By aem4beginner

No comments:

Post a Comment

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