Skip to content

Index

Stream

target: stream

Options block

Client side

  • filter: Object
    • actions: Array
      • icon: icon definition
      • label: title for the option
      • query: query for the option

Script

  • query - initial query
  • label - initial label
  • filter: Object
    • script: script handle
{
  "query": "current user, given tracker [regular-medicine-2, asthma-attack-medicine]",
  "label": "Your history",
  "filter": {
    "script": "stream-filter-1"    
  }
}
{
  "filter": {
    "actions": [
      {
        "icon": "user",
        "label": "Your history",
        "query": "current user, given tracker [regular-medicine-2, asthma-attack-medicine]"
      }
    ]
  }
}