Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: How to pass dialog properties using useDialog="true" on button click?
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
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.