EasyUI Forum

General Category => General Discussion => Topic started by: korenanzo on October 29, 2014, 08:00:54 AM



Title: buttons: why <link> instead of <button> ?
Post by: korenanzo on October 29, 2014, 08:00:54 AM
Hi all,

Just a consideration:

I'd like to know why it has been chosen <link> as base for easyui buttons, instead of the usual button.

I mean, the  <button> offers the chance to easily manage the keyboard events, the focus and event like that.

Using <link> , if you need to manage those events, you should implement them by hand.

Probably I am missing something... ?

RIc



Title: Re: buttons: why <link> instead of <button> ?
Post by: stworthy on October 29, 2014, 04:02:49 PM
You also can choose the <button> to create your linkbutton component.
Code:
<button class="easyui-linkbutton">Button</button>