Timemap.js v.2.0.1

Class TimeMap.params.OptionParam

Extends:
TimeMap.params.Param
Defined in:
param.js

A convenience class for those parameters which deal with a value in the options of a TimeMap or TimeMapItem object, setting some additional default functions.

Constructor

TimeMap.params.OptionParam(paramName, options)

Fields

Field
Inherited from TimeMap.params.Param
paramName :{String}
String name of this param
set
Set the state value in the opts object of a TimeMap or TimeMapItem
Inherited from TimeMap.params.Param
String name of the source element, if different

Methods

Method
Inherited from TimeMap.params.Param
Parse a state value from a string
get(o)
Get the current state value from the opts object of a TimeMap or TimeMapItem
Inherited from TimeMap.params.Param
Get the current value as a string
setConfig(config, value)
Set a new value on a config object for TimeMap.init() or a particular item
Inherited from TimeMap.params.Param
setConfigXML(config, node)
Set a config object based on an XML tag
Inherited from TimeMap.params.Param
setString(o, s)
Set the current state value from a string
Inherited from TimeMap.params.Param
toString(value)
Serialize a state value as a string
Class Detail
TimeMap.params.OptionParam(paramName, options)
Parameters (optional)
paramName {String} String name of the option parameter
options {Object} Container for named arguments (see TimeMap.params.Param)
Field Details
set
Set the state value in the opts object of a TimeMap or TimeMapItem
Parameters (optional)
o {TimeMap|TimeMapItem} Object to modify
value {mixed} Value to set
Method Details
get(o) :{mixed}
Get the current state value from the opts object of a TimeMap or TimeMapItem
Parameters (optional)
o {TimeMap|TimeMapItem} Object to inspect
Returns:
{mixed} Current state value
setConfig(config, value)
Set a new value on a config object for TimeMap.init() or a particular item
Parameters (optional)
config {Object} Config object to modify
value {mixed} Value to set
©2010 Nick Rabinowitz
Documentation generated by JsDoc Toolkit 2.3.2 on Sat Aug 06 2011 13:40:08 GMT-0700 (PDT)