new LaneList()
Create a new instance of LaneList
- Source:
- Lane/LaneList.js, line 35
- See:
Properties:
Name | Type | Description |
---|---|---|
lanes |
Array | Array of lanes. |
pools |
Array | Array of pools. |
Example
Load Lanes
var laneList = new LaneList();
laneList.load({
onSuccess:function(){
alert("lanes:"+laneList.lanes.length+" pools:"+laneList.pools.length);
}
});
Methods
-
generateUrl()
-
Overrides Resource's generateUrl method to return the request url
- Source:
- Lane/LaneList.js, line 56
- See:
-
loadPoolsSerialized(options)
-
Load pools in a serialized manner
Parameters:
Name Type Description options
object options to be used during the call
Properties
Name Type Argument Description onSuccess
Resource~onSuccess a callback function called in case of a success onFailure
Resource~onFailure <optional>
a callback function called in case of a failure baseUrl
String <optional>
base URL. If not set the current base URL will be used - Source:
- Lane/LaneList.js, line 114
-
loadPreset()
-
Overrides Resource's loadPreset method.
- Source:
- Lane/LaneList.js, line 50
- See:
-
loadSet(rObject)
-
Overrides Resource's loadSet method to set local variables after request.
Parameters:
Name Type Description rObject
json JSON representation of the loaded data. - Source:
- Lane/LaneList.js, line 66
- See: