Allows for options data configuration for class instances
new (require("tastypie/lib/class/options"))( [options])
Mixin class providing configuration options
Parameters:
Name | Type | Argument | Default | Description |
---|---|---|---|---|
options |
Object |
<optional> |
{} | object to use as overrides |
- Source:
Example
var conf = new options(); conf.setOptions({ key:{ a:1, b:2 } }); conf.setOptions({key:{b:3}}) conf.options.key.b // 3 conf.options.key.a // 1
Requires
- module:tastypie/lib/class
- module:mout/object/merge
- module:mout/array/append
Methods
-
setOptions(options)
-
Over rides internal values with supplied object
Parameters:
Name Type Description options
Object The options object to use as configuration overrides
- Source: