Liferay popup
Pop up with the title ,height, width
<script>
function <portlet:namespace/>addpopup(addEntries) {
AUI().use('aui-dialog', 'aui-io', 'event', 'event-custom', function(A) {
var dialog = new A.Dialog({
title : 'Its is popup',
height : 500,
width : 580,
centered : true,
draggable : true,
modal : true
}).plug(A.Plugin.IO, {
uri : addEntries
}).render();
dialog.show();
});
}
</script>
Creating the button , when clicking on button popup will be highlited
<aui:button type="button" value="Add"
onClick="javascript: <portlet:namespace/> addpopup ('${addEntries}');" >
</aui:button>
Creating the renderURL in which the page should displayed in the popup
<portlet:renderURL var="addEntries" windowState="<%=LiferayWindowState.EXCLUSIVE.toString()%>">
<portlet:param name="mvcPath" value="/jsp/add/view.jsp" />
</portlet:renderURL>
Great info. Thanks for sharing with us.
ReplyDeletePopup builder Plugin