Skip to content

FixedDashboard

Display a dashboard with fixed mode. Where there is having program start date and end date. We can manage a dashboard using a configuration.

Fixed dashboard configuration in navigation menu.

{
  "query": "program active from -1 to +4 weeks with [any]",
  "mode": "fixed",
  "title": "Fixed programs",
  "programStatsQuery": "program active from -1 to +4 weeks with [any]",
  "participantQuery": "program active from -1 to +4 weeks with [any] participant = trainer",
  "programKindGroup": {
    "excludes": [
      "skill"
    ]
  }
}

Fixed dashboard configuration in layout menu

For more details about the configured attribute see the

{
  "classes": {
    "container": "m-0 p-0"
  },
  "rows": [
    {
      "cols": [
        {
          "title": "General dashboard",
          "tile": "statistics",
          "query": "given program[%program], all trackers from %span",
          "range": "%range",
          "start": "%start",
          "end": "%end",
          "className": {
            "table": "mt-2"
          },
          "stats": [
            {
              "handles": [
                "preprogramDiet",
                "preprogramEquipment",
                "preprogramPhysical",
                "preprogramPhotos",
                "preprogramDiet2",
                "preprogramEquipment2",
                "preprogramPhysical2",
                "startPhoto"
              ],
              "title": "Pre program",
              "icon": "fal fa-clipboard-check"
            },
            {
              "...": "..."
            }
          ],
          "_id": "28"
        }
      ]
    }
  ]
}