How to refresh component through Javascript in Touch UI
All the editable will store at Granite.author.store
You can find editables for you component by using 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)
How to refresh in Classic UI?
ReplyDeleteHi,
ReplyDeleteCan we call directly Granite.author.editableHelper.doRefresh(cmp) or first we have to call any js in component and also what steps should i follow to just refresh one component after any api calls