Constructor
new DataSource(data)
Parameters:
| Name | Type | Description |
|---|---|---|
data |
Object | data supported by the components |
- Source:
Properties:
| Name | Type | Description |
|---|---|---|
data |
Object | data supported by the components |
Methods
-
#getCapability(feature) → {string|null}
-
Determines whether this DataSource supports the specified feature.
Parameters:
Name Type Description featurestring the feature in which its capabilities is inquired. - Source:
Returns:
the capability of the specified feature. Returns null if the feature is not recognized.- Type
- string | null
-
handleEvent(eventType, event) → {boolean}
-
Handle the event
Parameters:
Name Type Description eventTypestring event type eventObject event - Inherited From:
- Source:
Returns:
Returns false if event is cancelled- Type
- boolean
-
Init()
-
Initializes the instance.
- Source:
-
off(eventType, eventHandler)
-
Detach an event handler
Parameters:
Name Type Description eventTypestring eventType eventHandlerfunction(Object) event handler function - Inherited From:
- Source:
-
on(eventType, eventHandler)
-
Attach an event handler
Parameters:
Name Type Description eventTypestring eventType eventHandlerfunction(Object) event handler function - Inherited From:
- Source: