Namespace: ajs

ajs

Abidibo Javascript Library namespace
Source:

Namespaces

maps
Set of interactive maps modules
shared
Set of shared functions
tools
Set of tool modules
ui
Set of user interface modules

Members

<static> meta

Meta information about the library
Properties:
Name Type Description
version String The library version number
Source:

Methods

<static> css(path)

Css loader

Parameters:
Name Type Description
path String The css file path relative to the res/css directory
Source:
Example
    ajs.css('example.css');
    ajs.css('asubdir/example.css');

<static> extend(obj, parent) → {Object}

Namespace extension

Extends the parent namespace with the deep object given
Parameters:
Name Type Argument Default Description
obj Object The deep object
parent Object <optional>
ajs The namespace to be extended
Source:
Returns:
the extended namespace
Type
Object
Example
	// creates ajs.utilities.widgets and ajs.utilities.ui namespaces
	ajs.extend({utilities: { widgets: {}, ui: {} }}); 	

<static> use(mdls, callback)

Library loader

Loads dinamically the requested ajs module and executes the given callback when loading is complete
Parameters:
Name Type Description
mdls Mixed The module name or an array of module's names
callback Function The function to execute when all modules are loaded and ready
Source:
Example
 
	ajs.use(['ajs.ui.tree'], function() {
		// the library is ready
		var mt = new ajs.ui.tree.mootree('myelement');
	})