Forum Discussion
That is interesting Doug. Is that function supposed to also work with a modal component? I'm trying to call such a component this way, essentially with this:
$(".item a").click(function(e) {
var mydata = "Some data to pass"; var ajaxOptions = {success:console.log('SUCCESS!') }; LITHIUM.Components.render("MyModalComponent", {data:mydata}, ajaxOptions);
});
When I do I can see the success message in the console when tells me it should work, but the modal window does not open. The modal component does execute properly in studio when I preview it so that is not the problem. Any ideas?
You could use that to build a modal widget, but it would be up to you to supply the modal library to feed the markup to -- LITHIUM.Components.render will return markup that you can feed to a modal libary. We actually have a special freemarker derictive for loading components in a modal dialog if you are interested in try that out -- see this article for more information about that:
http://community.lithium.com/t5/Developers-Knowledge-Base/Creating-Modal-Dialogs/ta-p/77986
-Doug
Related Content
- 10 years ago
- 4 years agoInactive User