WTUI Docs

WTUI  1.0.0

WTUI Docs > WTUI > WTUI.Button
Search:
 
Filters

Class WTUI.Button

A Button

Tag

<wtui:button/>

The tag for WTUI.Button

Example:

<wtui:button id="examplebutton" />
                                          
Parameters:
id <String> (optional) The id of the button
class <String> (optional) The css class to give the button
style <String> (optional) The style to give the button
icon <String> (optional) the URL of an icon to use in the button
onclick <Function> (optional) The javascript function to call when the button is clicked

Methods

Events

click

click ( )
Fired when the button is clicked

Example:
WTUIComponent('buttonid').on('click', function() {
  alert('The button was clicked');
});

WTUI