ludo.dataSource.JSON

ludo.dataSource.


new ludo.dataSource.JSON()

Class for remote data source.

Source:

Extends

Methods


getData() → {Object|Array}

Return data loaded from server

Inherited From:
Source:
Returns:
Type
Object | Array

getSourceType()

Return data-source type(HTML or JSON)

Inherited From:
Source:
Returns:

string source type


hasData() → {Boolean}

Has data loaded from server

Inherited From:
Source:
Returns:
Type
Boolean

load()

Reload data from server
Components using this data-source will be automatically updated

Source:
Returns:

void


loadUrl(url)

Load content from a specific url

Parameters:
Name Type Description
url
Inherited From:
Source:

sendRequest(service, arguments, data)

Send a new request

Parameters:
Name Type Description
service String
arguments Array
data Object
Inherited From:
Source:

setData(data)

Update data source with new data and trigger events "parseData",

Parameters:
Name Type Description
data Array
Source: