To implement popup on popup in liferay is quite simple. We need to have 2 pages one parent page on which 1st popup is already opened and 2nd page which will be opened in 2nd popup.
For 1st page call:
functionparentPage(url) {
var popup = Liferay.Popup(
{
stack: true,
draggable:false,
title: 'Parent Page',
position:[110,50],
modal:true,
width:450,
height:365,
url:url
}
);
}
here stack:true property is important which is responsible for pop on popup.url is which page we want to load . It can be portlet url. Other parameters are self explanatory.
In child page you can simply write another popup.
functionchildPage(url) {
var popup = Liferay.Popup(
{
title: 'Child Page',
position:[110,50],
modal:true,
width:450,
height:365,
url:url
}
);
}
Thanks and Hope this help few people.
For 1st page call:
function
var popup = Liferay.Popup(
{
stack: true,
draggable:false,
title: 'Parent Page',
position:[110,50],
modal:true,
width:450,
height:365,
url:url
}
);
}
here stack:true property is important which is responsible for pop on popup.url is which page we want to load . It can be portlet url. Other parameters are self explanatory.
In child page you can simply write another popup.
function
var popup = Liferay.Popup(
{
title: 'Child Page',
position:[110,50],
modal:true,
width:450,
height:365,
url:url
}
);
}
Thanks and Hope this help few people.
0 comments:
Post a Comment