Data Parsing

Source

A datasource available to all widgets in portal.

Accessors

  • datasources[“sourceKey”]

Available methods:

  • latestData() -> Any
    • Return the latest value associated with the source

Parser

A function that filters data and has access to portal’s scope variables.

Widget Scope Variables

  • this.datasource
    • The current data of the widget’s linked source
    • Equivalent to calling datasources[“sourceKey”].latestData()
  • this.widget
    • The value of the current widget

Incoming

Filters from source to widget, most commonly used to format data into widget’s expected format.

Outgoing

Filters from widget to source, most commonly used to format payload for source.