Sometimes, we may get requirements to open portlet in a popup. We can use below Javascrpit function to open in apopup. AUI().use('aui-base','aui-component','aui-parse-content','aui-node','liferay-form', 'liferay-portlet-url', 'liferay-util-window', 'plugin','aui-io-request', function(A){ var renderURL = Liferay.PortletURL.createRenderURL(); renderURL .setWindowState("exclusive"); renderURL.setPortletId(" <portlet-name> "); var url = renderURL.toString(); A.io.request(url, { on: { success: function(event, id, obj) { var responseData = this.get('responseData'); if (responseData) { Liferay.Util.openWindow({ dialog: {
Thank you so much for your great contribution.I am very happy.You can share more article.
ReplyDelete