API Docs for: 0.1

Class UbuntuUI.Button

Class defined in: buttons.js:23

A Button.

Note the Ubuntu CSS style classes: success, warning, and danger

UbuntuUI.Button( )
buttons.js:23
Example
 <button data-role="button" id="buttonID">text</button>

 Javascript access:
 var button = UI.button("buttonID");
click( callback )
buttons.js:42

Associate a function with the button's Click event

Parameters:
  • callback <Function>
    • The function to execute on click
Example
   UI.button("buttonid").click(function(){
    console.log("clicked");
   });