Function Index
| A | |
| addBody | |
| addClassName | |
| addContent | |
| addPreference | |
| appendText | |
| C | |
| callback | |
| camelCase | |
| clearDelayed, Environment | |
| clearPeriodical | |
| contains | |
| createElement | |
| D | |
| detect | |
| E | |
| empty | |
| equals | |
| escapeRegExp | |
| every | |
| extend | |
| F | |
| filter | |
| forEach | |
| format | |
| G | |
| getBool | |
| getChildren | |
| getDimensions | |
| getFeed | |
| getInt | |
| getJson | |
| getModule | |
| getParent | |
| getPreference | |
| getText | |
| getTitle | |
| getValue | |
| getXml | |
| H | |
| hasClassName | |
| hide | |
| I | |
| indexOf | |
| init, Environment | |
| initPreferences | |
| inject | |
| isEmail | |
| L | |
| launch | |
| launchModule, Environment | |
| log | |
| M | |
| makeClickable | |
| map | |
| merge | |
| mergePreferences | |
| N | |
| normalize | |
| O | |
| openURL | |
| P | |
| parseRelativeTime | |
| R | |
| registerModule, Environment | |
| remove | |
| removeClassName | |
| request | |
| S | |
| s | |
| setAutoRefresh | |
| setBody | |
| setDelayed, Environment | |
| setHTML | |
| setIcon | |
| setMetas | |
| setPeriodical | |
| setPreferences | |
| setSearchResultCount | |
| setStyle | |
| setText | |
| setTitle | |
| setUnreadCount | |
| setValue | |
| show | |
| some | |
| stripTags |
Adds contents to the existing body of the Widget.
addBody: function( content )
Adds a CSS class to element.
addClassName: function( className )
addContent: function( content )
Adds a single preference to the existing preferences of the widget.
addPreference: function( preference )
Adds a new text node at the end of the element’s existing content
appendText: function( text )
Executes the callback method associated with the given callback name (key).
callback: function( name, args, bind )
Fire Environment.key then the callback method associated with the given callback name (key).
callback: function( name, args, bind )
Not documented
camelCase: function()
Unregister a delayed event previously registered with setDelayed
clearDelayed: function( name )
Unregister a periodical event previously registered with setPeriodical
clearPeriodical: function( name )
Unregister a periodical event previously registered with setPeriodical
clearPeriodical: function( name )
Not documented
contains: function( string, separator )
Creates a new element according to the provided “tagName”.
createElement: function( tagName, options )
Not documented
detect: function( iterator )
Empty an element of all its children.
empty: function()
Test wether the array equals to the one passed as parameter.
equals: function( compare )
Returns string with escaped regular expression characters
escapeRegExp: function()
Tests whether all elements in the array pass the test implemented by the provided function.
every: function( fn, bind )
Copies all the properties from the second passed object to the first passed Object.
UWA.extend = function( original, extended )
Creates a new array with all elements that pass the test implemented by the provided function.
filter: function( fn, bind )
Executes a provided function once per array element.
forEach: function( fn, bind )
Not documented
format : function()
Gets the Boolean value of the given preference.
getBool: function( name )
return a collection of the element’s child nodes
getChildren: function()
Finds the computed width and height of element and returns them as key/value pairs of an object.
getDimensions: function()
Gets the content of a feed, in a JSON format.
getFeed: function( url, callback )
Gets the Integer value of the given preference.
getInt: function( name )
This method is used to get the content of an external JSON data source.
getJson: function( url, callback )
This method is used to get the content of an external widget, in XML format.
getModule: function( url, callback, id )
Returns the widget (= module) currently registered in the Environment.
getModule: function()
return a reference to the element’s parent node
getParent: function()
Get a preference with its name.
getPreference: function( name )
This method is used to get the content of an external data source.
getText: function( url, callback )
Get the title of the Widget.
getTitle: function()
Gets the value of the given preference.
getValue: function( name )
This method is used to get the content of an external XML data source.
getXml: function( url, callback )
Checks whether element has the given CSS className.
hasClassName: function( className )
Hides and returns element.
hide: function()
Returns the first index at which a given element can be found in the array, or -1 if it is not present.
indexOf: function( item, from )
Initialize the Environment, when DOM is ready
init: function()
Initializes preferences of the widget.
initPreferences: function()
Insert the Element inside the passed element
inject: function( el, where )
Not documented
isEmail: function()
Launch the widget : call initPreferences then fire widget.onLoad.
launch: function()
Launch the registered widget by fire the widget.launch method.
launchModule: function()
Log a message to a console, if one available.
UWA.log = function( message )
Logs environment’s messages in the console, if one exists and if the debugMode is true.
log: function( string )
Not documented
makeClickable: function()
Creates a new array with the results of calling a provided function on every element in this array.
map: function( fn, bind )
Copies the properties from the second passed object to the first passed Object if it not exists already.
UWA.merge = function()
Add preferences to the widget if preferences of the same name are not already defined.
mergePreferences: function( prefs )
Not documented
normalize: function( sum )
Open an URL.
openURL: function( url )
Not documented
parseRelativeTime: function( raw, offset )
Registers a Widget (module) into the execution Environment.
registerModule: function( module )
Completely removes element from the document and returns it.
remove: function()
Removes element’s CSS className and returns element.
removeClassName: function( className )
This method is used to get the content of an external data source.
request: function( url, request )
Not documented
s: function()
Sets the auto-refresh interval for the widget.
setAutoRefresh: function( delay )
Sets the body of the Widget.
setBody: function( content )
Registers a function as delayed event.
setDelayed: function( name, fn, delay, bind )
Sets the innerHTML of the Element.
setHTML: function( html )
Sets the icon for the Widget.
setIcon: function( url, search )
Set the metas of the widget.
setMetas: function( metas )
Register a function as periodical event.
setPeriodical: function( name, fn, delay, force )
Register a function as periodical event.
setPeriodical: function( name, fn, delay, force )
Sets preferences of the widget.
setPreferences: function( schema )
Sets the search result count.
setSearchResultCount: function( count )
Modifies element’s CSS style properties.
setStyle: function( style )
Sets the inner text of the Element.
setText: function( text )
Sets the title of the Widget.
setTitle: function( title, extended )
Sets the count of unread items.
setUnreadCount: function( count )
Sets the value of the given preference.
setValue: function( name, value )
Displays and returns element.
show: function()
Tests whether some element in the array passes the test implemented by the provided function.
some: function( fn, bind )
Strips a string of any HTML tag.
stripTags: function()