Constructor
new OverlayData(app, dataId, configs)
Parameters:
Name | Type | Description |
---|---|---|
app | App | The associated application. |
dataId | string | The associated data id. |
configs | object | The overlay config. |
- Source
Classes
Methods
addAppListeners()
Toggle info listeners.
- Source
addEventListener(type, callback)
Add an event listener to this class.
Parameters:
Name | Type | Description |
---|---|---|
type | string | The event type. |
callback | object | The method associated with the provided event type, will be called with the fired event. |
- Source
addItemMeta(data)
Handle a new loaded item event.
Parameters:
Name | Type | Description |
---|---|---|
data | object | The item meta data. |
- Source
isListening() → {boolean}
Is this class listening to app events.
- Source
Returns:
True is listening to app events.
- Type:
- boolean
removeAppListeners()
Toggle info listeners.
- Source
removeEventListener(type, callback)
Remove an event listener from this class.
Parameters:
Name | Type | Description |
---|---|---|
type | string | The event type. |
callback | object | The method associated with the provided event type. |
- Source
reset()
Reset the data.
- Source