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: clay button in a portlet
Hi, I'm learning Liferay 7.2. I'm creating a button following theses steps https://help.liferay.com/hc/en-us/articles/360032887732-Creating-an-Add-Entry-Button. I heard that using a AlloyUI tags is depecrated. Is there an example with a clay tag?
ok, it works fine but how do you associate an "URL" to the button? for example, do you use the attribute "Onclick" like in this example https://help.liferay.com/hc/en-us/articles/360032887752-Generating-Portlet-URLs ?
You can do that in two ways
1.Wrap the button with anchor tag
2. bind a onclick event with id of the button and in event redirect to url
1.Wrap the button with anchor tag
2. bind a onclick event with id of the button and in event redirect to url