Jan 21, 2015, 9:28 AM
Instead of having the URL defined in the Window like:
Thank you
@(X.Window()
.ID("Window1")
.Title("Window")
.Hidden(true)
.Height(100)
.Loader(X.ComponentLoader()
.AutoLoad(false)
.Mode(LoadMode.Html)
.Scripts(true)
.Url(Url.Action("WindowContent"))
.Params(new
{
containerId = "Window1"
})
)
)
I would like to pass in the URL parameter to the:<script>
var openWindow = function(recordId) {
App.Window1.removeAll();
App.Window1.show();
App.Window1.load({
params: {
recordId: recordId
}
});
};
</script>
How do I set the URL for the App.Window1 please?Thank you