Modules
Classes
- UbuntuUI
- UbuntuUI.Button
- UbuntuUI.Dialog
- UbuntuUI.Header
- UbuntuUI.List
- UbuntuUI.Page
- UbuntuUI.Pagestack
- UbuntuUI.Popover
- UbuntuUI.Shape
- UbuntuUI.Tabs
- UbuntuUI.Toolbar
Methods
UbuntuUI.Shape
Class UbuntuUI.Shape
Class defined in:0.1/ambiance/js/shape.js:23
An Ubuntu Shape contains and decorates (with CSS styles) some markup, often an img.
UbuntuUI.Shape
(
)
0.1/ambiance/js/shape.js:23
Example
<div data-role="shape" id="shapeID">
<img src="URI"/>
</div>
JavaScript access:
var shape = UI.shape("shapeID");
Methods
click
( -
)
0.1/ambiance/js/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");
});