IconButton
THIS ARTICLE IS READY FOR REVIEW!!!
IconButton widget is an extension of Button widget, so both holds the same behaviour. For instance alike button widget iconButton can also trigger an action when you click on it.IconButton is an action widget, meaning that it can call a function when an action happens on it.Also IconButton widget create a Icon widget
The simple way to include an IconButton to your application is
File /widgets/iconbutton/Snippet.tpl
icon: "std:confirm",
width: 150,
onclick: buttonClick,
block: true
The whole list of configuration parameters is available in IconButtonCfg bean.
Styling
Styling your buttons can be done by changing the properties of your widget or applying a sclass or changing the icon.
Binding
The following properties are bindable for IconButton widget
- selected
- disabled
- tooltip
For more information please read the article on Widget Bindings.
File /widgets/iconbutton/Snippet.tpl
icon: "std:confirm",
width: 150,
bind:{
disabled : { inside : data,
to : 'enableButton',
transform : 'aria.widgets.transform.NotTransform' }
},
onclick: buttonClick
