cq5 - How to build CQ.Dialog from the dialog json in javascript? -
in javascript, dialog follow:
var url = cq.http.externalize(pathtodialog+".infinity.json"); var dialog = cq.http.eval(url);
my question how convert dialog
cq:dialog widget, sothat can use cq:dialog methods find( string prop, string value ), u can find in cq5 widget api
thanks help
you can use getdialog() method of cq.wcm class dialog object url. additionally, can pass config object perform functions caching dialog, looking dialog in cache alone , on.
var dialog = cq.wcm.getdialog(pathtodialog + ".infinity.json");
Comments
Post a Comment