IDataManager

Extends IEventEmitter.

Interface for the custom data manager.

Constructor | Fields | Events | Methods

Constructor

IDataManager()

Fields

Name Type Description
events IEventManager

Event manager.

Inherited from IEventEmitter.

Events

Name Description
change

Data change.

Methods

Name Returns Description
get(path, defaultValue)

Object

Returns value of data fields.

Events details

change

Data change.

Methods details

get

{Object} get(path, defaultValue)

Returns value of data fields.

Parameters:

Parameter Default value Description
path *

Type: String

String with the property name; can contain '.'.

defaultValue *

Type: Object

Default value.

* Mandatory parameter/option.

Example:

dataManager.get("icon.shadow.size", [10, 10]);