API Docs for: 0.1

Class UbuntuUI.Shape

Class defined in: shape.js:23

An Ubuntu Shape contains and decorates (with CSS styles) some markup, often an img.

UbuntuUI.Shape( )
shape.js:23
Example
 <div data-role="shape" id="shapeID">
   <img src="URI"/>
 </div>

 JavaScript access:
 var shape = UI.shape("shapeID");
click( - )
shape.js:42

Associate a function with the Click event

Parameters:
  • - <Function>

    The function to execute on click

Example
   UI.shape("id").click(function(){
    console.log("Clicked");
   });