How to pass dialog properties using useDialog="true" on button click?

Surendra K, modified 7 Years ago. New Member Posts: 17 Join Date: 9/10/14 Recent Posts

Hi ,

How to pass dialog properties like Id, width, title etc  using useDialog="true"on button click

 

<aui:button  id="btnId" cssClass="icon-search" value="Selecte" href="<%=renderUrl %>"  useDialog="true"   ></aui:button>

 

 

Regards

Surendra

 

 

thumbnail
Minhchau Dang, modified 7 Years ago. Liferay Master Posts: 598 Join Date: 10/22/07 Recent Posts
Surendra K:

How to pass dialog properties like Id, width, title etc  using useDialog="true"on button click

Instead of a regular URL href, you can have an onclick event handler. The event that's passed to that handler will usually have a currentTarget that provides you with the DOM node for the button, and you can look up attributes like you would in regular event handling Javascript.