Button widget enables the creation of rich, graphical buttons that function like traditional HTML form buttons and trigger an action when pressed.
The whole list of configuration parameters is available in ButtonCfg bean.
Styling your buttons can be done changing the properties of your widget or applying a sclass.
Button label can only be some text, for richer buttons please check iconbutton.
Button is an action widget, meaning that it can call a function when an action happens on it. This is done providing a callback to the onevent.
In the next sample there are two buttons with different onclick callback, a simple one and another one with arguments. Clicking on the buttons will open an alert dialog.
For more information please read the article on widget_bindings.