Constructors

Lookup

This:

Lookup("Number")("baseRate")(0.00066)

Creates this:

{
  "attributes": {
    "class": "lookup",
    "id": "baseRate",
    "value": 0.00066
  },
  "dataset": {
    "type": "Number"
  },
  "tag": "Data"
}

Which gets rendered to this:

<data
  class="lookup"
  id="baseRate"
  value="0.00066"
  data-type="Number"
></data>

LookupTable

LookupTable("Json")("someNumbers")("[[500000,0.94],[750000,0.975],[1000000,0.95]]")

Creates this:

{
  "attributes": {
    "class": "lookup-table",
    "id": "someNumbers",
    "value": "[[500000,0.94],[750000,0.975],[1000000,0.95]]"
  },
  "dataset": {
    "type": "Json"
  },
  "tag": "Data"
}

Which gets rendered to this:

<data
  class="lookup-table"
  id="someNumbers"
  value="[[500000,0.94],[750000,0.975],[1000000,0.95]]"
  data-type="Json"
></data>