Class: Value

Value()

new Value()

The wrapper class on top of the primitive value of a field.
Source:
To Do:
  • Need to have support for StringValue, NumberValue, DateTimeValue and GeoValue.

Members

value

Returns the underlaying wrapped value.
Source:

Methods

toString() → {string}

String representation of the underlying value. If there is a hint of string operations, this function gets called.
Source:
Returns:
Returns a human readable string of the field value.
Type
string

valueOf() → {*}

Returns the value of the field. If there is a hint of converting the value to integer, this gets called.
Source:
Returns:
Returns the field value.
Type
*

Value(val, field)

new Value(val, field)

Creates new Value instance.
Parameters:
Name Type Description
val * the primitive value from the field cell.
field string | Field The field from which the value belongs.
Source:

Members

value

Returns the underlaying wrapped value.
Source:

Methods

toString() → {string}

String representation of the underlying value. If there is a hint of string operations, this function gets called.
Source:
Returns:
Returns a human readable string of the field value.
Type
string

valueOf() → {*}

Returns the value of the field. If there is a hint of converting the value to integer, this gets called.
Source:
Returns:
Returns the field value.
Type
*