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

Popular posts from this blog

windows - Single EXE to Install Python Standalone Executable for Easy Distribution -

c# - Access objects in UserControl from MainWindow in WPF -

javascript - How to name a jQuery function to make a browser's back button work? -