Skip to content

Schedule view

Display Combined schedule

  • tile : "scheduleView"
  • title
  • options: Object
    • rootClasses: styles classes
    • hideSwitch: true | false
    • startingView: set starting view from Grid | list
  • filter:
    • tracker: tracker to filter from list
    • match: match criteria
    • trackers: list trackers Array
    • condition
    • entryCondition
  • completions:
    • tracker: tracker to filter from list
    • match: match criteria
    • trackers: list trackers Array
    • condition
    • entryCondition
  • connect: connection objects
  • addSchedule:
    • tracker
  • action: Array
    • merge: Array of objects
      • $range : Array
    • tracker
  • schedule: Array of objects
    • icon
    • color
    • attribute: tracker attribute
    • title
    • prefix
    • direction
    • tracker: tracker name
    • chart: chart name
    • chartAttribute
    • chartTitle
    • complete: complete criteria
    • fail
    • start
    • startActual
    • startPlanned
    • mapping
    • failed
    • iconPending
    • iconComplete
    • iconProgress

Example

 {
  "tile": "scheduleView",
  "options": {
    "rootClasses": "mx-2",
    "hideSwitch": true,
    "startingView": "grid"
  },
  "filter": {
    "tracker": "schedule",
    "match": "YYYY-MM-DD"
  },
  "completions": {
    "trackers": [
      "activity",
      "activity-other",
      "activity-meal",
      "activity-sleep"
    ],
    "match": "YYYY-MM-DD",
    "iconComplete": "fal fa-check-square",
    "iconPending": "fal fa-square",
    "titlePlanned": "予定",
    "titleActual": "実情"
  },
  "connect": {
    "source": "$store"
  },
  "addSchedule": {
    "tracker": "schedule"
  },
  "action": {
    "tracker": "activity",
    "merge": {
      "$range": [
        "actual",
        "scheduled"
      ]
    }
  },
  "schedule": [
    {
      "title": "朝食",
      "tracker": "activity-meal",
      "attribute": "breakfast",
      "icon": "fal fa-coffee",
      "color": "#d60000",
      "chart": "donut",
      "complete": "values.beforeCheck is true and values.afterCheck is true and values.location exists and values.participants exists"
    },
    {
      "title": "仕事",
      "attribute": "work",
      "tracker": "activity-other",
      "icon": "fal fa-briefcase",
      "color": "#ffc000",
      "chart": "donut",
      "iconProgress": "fal fa-square",
      "complete": "values.complete is true"
    },
    {
      "title": "運動",
      "attribute": "movement",
      "tracker": "activity-other",
      "icon": "far fa-running",
      "color": "#8f18ad",
      "chart": "donut",
      "iconProgress": "fal fa-square",
      "complete": "values.complete is true"
    }
  ]
}