RE: clay button in a portlet

Jacques Merette, modified 5 Years ago. New Member Posts: 16 Join Date: 1/8/16 Recent Posts
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?
Jacques Merette, modified 5 Years ago. New Member Posts: 16 Join Date: 1/8/16 Recent Posts
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 ?
thumbnail
Mohammed Yasin, modified 5 Years ago. Liferay Master Posts: 593 Join Date: 8/8/14 Recent Posts
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