A component that provides an interface between data and handlers.
This module fetches data through DataSource and calls a ContentHandler to parse the content data and create a new view.
Parameter | Type | Description |
---|---|---|
ds | DataSource | |
target | DomNode | |
refNode | DomNode |
Optional
|
An optional reference DOM node before which a new view is created.
Fetches data through DataSource and passes it to a content handler.
Parameter | Type | Description |
---|---|---|
contentType | String | The type of the content. (ex. "html") It is used to determine what content handler to use. |
callback | Function | A function to be called after creating a new view. |