Skip to content

Instantly share code, notes, and snippets.

@yasuflatland-lf
Last active August 22, 2019 09:19
Show Gist options
  • Select an option

  • Save yasuflatland-lf/273bef059e259a7442b7c028efb7385a to your computer and use it in GitHub Desktop.

Select an option

Save yasuflatland-lf/273bef059e259a7442b7c028efb7385a to your computer and use it in GitHub Desktop.
<span class="label label-secondary" id="test">
<span class="label-item label-item-expand">Label Text</span>
</span>
<aui:script position="inline" >
$("#test").click(function(event) {
Liferay.Util.openWindow(
{
dialog: {
after: {
destroy: function(event) {
}
},
destroyOnHide: true
},
dialogIframe: {
bodyCssClass: 'dialog-with-footer'
},
id: '<portlet:namespace />openImportView',
title: 'Detail Page',
uri: '<portlet:renderURL windowState="<%= LiferayWindowState.POP_UP.toString() %>"><portlet:param name="mvcPath" value="/details.jsp" /></portlet:renderURL>'
}
);
});
</aui:script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment