Alloy
Top-level module for Alloy functions.
Properties #
CFG#
Type: Object
An object that stores Alloy configuration values as defined in your app's
app/config.json file.
Methods #
createCollection #
Factory method for instantiating a Backbone collection of model objects.
Parameters:
| Name | Type | Summary | Optional |
|---|---|---|---|
name | String | No | |
args | Object | Yes |
Returns: Backbone.Collection — Backbone collection object.
createController #
Factory method for instantiating a controller.
Parameters:
| Name | Type | Summary | Optional |
|---|---|---|---|
name | String | No | |
args | Object | Yes |
Returns: Object — Alloy controller object.
createModel #
Factory method for instantiating a Backbone Model object.
Parameters:
| Name | Type | Summary | Optional |
|---|---|---|---|
name | String | No | |
args | Object | Yes |
Returns: Backbone.Model — Backbone model object.
createWidget #
Factory method for instantiating a widget controller.
Parameters:
| Name | Type | Summary | Optional |
|---|---|---|---|
id | String | No | |
name | String | Yes | |
args | Object | Yes |
Returns: Object — Alloy widget controller object.