Namespace: ajs

ajs

Abidibo Javascript Library namespace

Source:
  • ajs.js, line 5

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:
  • ajs.js, line 15

Methods

<static> css

Css loader

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

<static> extend

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:
  • ajs.js, line 30
Returns:
the extended namespace
Type
Object
Example
	// creates ajs.utilities.widgets and ajs.utilities.ui namespaces
	ajs.extend({utilities: { widgets: {}, ui: {} }}); 	

<static> use

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:
  • ajs.js, line 63
Example
 
	ajs.use([ajs.ui.tree], function() {
		// the library is ready
		var mt = new ajs.ui.tree.mootree('myelement');
	})