Fork me on GitHub

API Documentation

Gadget Gadgets are more complex widgets. One could think of them as windows. They may contain widgets.
Defined in: gadget.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Method Summary
Method Attributes Method Name and Description
 
addToDOM(element, position)
Add Gadget to DOM
 
setPosition(position)
This function sets the position of the gadget
 
updatePosition(position)
This function changes css attributes in order to position the gadget
Class Detail
GUI.Gadget()
Method Detail
addToDOM(element, position)
Add Gadget to DOM
Parameters:
{object} element
Parent element of the gadget
{object} position Optional
position.x, possible values: "left", "middle", "right"
position.y, possible values: "top", "middle", "bottom"

setPosition(position)
This function sets the position of the gadget
Parameters:
{object} position
position.x, possible values: "left", "middle", "right", number
position.y, possible values: "top", "middle", "bottom", number

updatePosition(position)
This function changes css attributes in order to position the gadget
Parameters:
{object} position
position.x, possible values: "left", "middle", "right"
position.y, possible values: "top", "middle", "bottom"

Documentation generated by JsDoc Toolkit 2.4.0 on Sun Feb 12 2012 14:20:23 GMT+0000 (GMT)