Class: PackageConfig

AJL. PackageConfig

{AJL.PackageConfig}

new PackageConfig(params) → {AJL.PackageConfig}

Create configuration object for Package
Parameters:
Name Type Description
params Object Object with configuration
Properties
Name Type Description
async Boolean Asynchronous loading of package or not
lazy Boolean Lazy loading of package (waiting for window loads)
depend Array Array of Package's names which need to load before load this
scriptTypeAttr String This value write in script tag in type attribute
linkCssTypeAttr String This value write in link tag in type attribute
linkCssRelAttr String This value write in link tag in rel attribute
Source:
Returns:
Type
AJL.PackageConfig
Example
new AJL.PackageConfig({
     async: false,
     lazy: true,
     depend: ['Package One Name', 'Package Two Name']
});

Members

options :Object

Configuration object with params
Type:
  • Object
Source:

Methods

getItem(key) → {*}

Get item from configuration storage of Package
Parameters:
Name Type Description
key String Name of value in storage
Source:
Returns:
Type
*
Example
myConfig.getItem('dependMap');

setItem(key, value) → {AJL.PackageConfig}

Set item in configuration storage of Package
Parameters:
Name Type Description
key String Name of value in storage
value * Value of this param
Source:
Returns:
Type
AJL.PackageConfig
Example
myConfig.setItem('MyOwnParam', 'Foo');