<basevaluecomponent>
an abstract class for components which represent data

JavaScript: lz.basevaluecomponent
extends <basecomponent> » <view> » <node> » lz.Eventable »

This abstract class provides a value attribute with data binding to a specific valuedatapath.

an abstract class for components that represent a value for data

Attributes

Name (CSS property) Type (tag) Type (js) Default Category
type string String expression read/write
  The type of value of the item. Default is 'expression', which will attempt to heuristicate the type from the value.
value expression any null read/write
  the value that this item represents. When selected, the parent selection group's value will be set to this value. Most subclasses require you to call getValue() to get the value of the attribute.

Methods

acceptValue()
basevaluecomponent.acceptValue(data : String, type : String);
Set `value` according to `type` from a String Used to set a typed value from a string representation.
Parameter Name Type Description
data String the string representation of `value` (according to `type`).
type String (optional) the name of the type to use, defaults to `this.type`

getValue()
basevaluecomponent.getValue();
returns the value that is represented by this component

presentValue()
basevaluecomponent.presentValue(type : String);
Return `value` according to `type` as a String Used to get a string representation of a typed value.
Parameter Name Type Description
type String (optional) the name of the type to use, defaults to `this.type`
Returns Type Description
  String the string representation of `value` (according to `type`)

Methods inherited from lz.Eventable

destroy, setAttribute

Events

Events inherited from <node>

onconstruct, ondata, oninit

Events inherited from lz.Eventable

ondestroy