Skip to content

Popup

popup

Description

Displays a popup with multiple options; good for longer complex lists of choices for the user.

Attributes

  • title
  • $capture.auto
    • rule
    • value
  • $capture.readonly
  • $data.source: an array of data objects
    • value: value to set
    • display: what to show to the user
    • icon: icon (optional)
    • color: color hex value (optional)

Example

{
  "type": "string",
  "$capture": {
    "as": "popup",
    "readonly": true
  },
  "title": "Popup metric",
  "$data": {
    "source": [
      {
        "display": "Val1",
        "value": "val1",
        "icon": "heart",
        "color": "red"
      }
    ]
  }
}