attributeTableInfo

Defines the look and feel of the data table when showing data in a tabular format.

Referenced by: CSV Layer (CSV), Feature Layer (ArcGISFeatureLayer), Footprint Layer (FootprintLayer), GeoJSON Layer (GeoJSON), Subtype Layer (SubtypeLayer), Subtype Table (SubtypeTable), table

Properties

Property Details
attributeTableElements[] An array of attributeTableElement objects that represent an ordered list of elements that represent various types of tabular content.
Array of items of the following types:
orderByFields[] Array of orderByField objects indicating the row sort order, and whether they should be sorted in ascending 'asc' or descending 'desc' order.

Example

{
  "attributeTableElements": [
    {
      "fieldName": "inspectionDate",
      "type": "field"
    },
    {
      "fieldName": "inspectionType",
      "type": "field"
    },
    {
      "fieldName": "inspectedBy",
      "type": "field"
    },
    {
      "label": "Address Information",
      "type": "group",
      "attributeTableElements": [
        {
          "fieldName": "StreetNumber",
          "type": "field"
        },
        {
          "fieldName": "StreetName",
          "type": "field"
        },
        {
          "fieldName": "City",
          "type": "field"
        }
      ]
    },
    {
      "label": "Photos and Files",
      "description": "Click to get more details.",
      "type": "attachment",
      "displayType": "auto"
    },
    {
      "label": "Inspections",
      "description": "Click to browse previous inspections",
      "type": "relationship",
      "relationshipId": 0
    }
  ],
  "orderByFields": [
    {
      "field": "inspectionDate",
      "order": "desc"
    }
  ]
}

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.