Skip to content

Entity Views

Stack9 lets you show your entity entries in different ways.

View Types

  • listView: Show entries as rows in a table. It is used as default if any view is specified.
  • mapView: Show entries as pins in a map. A MapLocation field type is required.
  • kanbanBoardView: Show entries as cards in a Kanban board.
  • timelineView: Show entries as events in a calendar.

Example

{
  "views": [
    {
      "name": "List View",
      "viewType": "listView",
      "isDefault": true
    },
    {
      "name": "Map View",
      "viewType": "mapView",
      "viewOptions": {
        "locationField": "point_field",
        "title": ["text_field"],
        "description": [
          { "label": "field", "value": "text_field" },
          { "label": "field", "value": "text_field" }
        ]
      }
    },
    {
      "name": "Board View",
      "viewType": "kanbanBoardView",
      "viewOptions": {
        "title": ["text_field"],
        "description": ["text_field", "text_field"],
        "groupBy": { "sourceType": "workflow" }
      }
    },
    {
      "name": "Calendar",
      "viewType": "timelineView",
      "viewOptions": {
        "title": ["text_field"],
        "groupBy": {
          "sourceType": "field",
          "sourceField": "text_field"
        },
        "dateFields": {
          "start": "date_field",
          "end": "date_field"
        }
      }
    }
  ]
}