Attribute Table
The Attribute Table widget displays a tabular view of a feature layer's attributes.
Configurable attributes
The following table describes the configurable attributes of the Attribute Table widget.
Attribute | Description |
---|---|
layerInfos | Array of object. An array of feature layers. There is no default.
|
initiallyExpand | Boolean. Initially expands the widget. It is set to false by default. |
Example
{
"layerInfos": [{
"name": "USA_hostingFS - Cities",
"id": "USA_hostingFS_7710",
"layer": {
"url": "https://services2.arcgis.com/K1Xet5rYYN1SOWtq/ArcGIS/rest/services/USA_hostingFS/FeatureServer/0",
"fields": [{
"show": true,
"name": "OBJECTID",
"alias": "OBJECTID"
}, {
"show": true,
"name": "AREANAME",
"alias": "AREANAME"
}, {
"show": true,
"name": "CLASS",
"alias": "CLASS"
}, {
"show": true,
"name": "ST",
"alias": "ST"
}, {
"show": true,
"name": "CAPITAL",
"alias": "CAPITAL"
}, {
"show": true,
"name": "POP2000",
"alias": "POP2000"
}, {
"show": false,
"name": "GlobalID",
"alias": "GlobalID"
}]
},
"show": true
}, {
"name": "USA_hostingFS - Highways",
"id": "USA_hostingFS_2758",
"layer": {
"url": "https://services2.arcgis.com/K1Xet5rYYN1SOWtq/ArcGIS/rest/services/USA_hostingFS/FeatureServer/1",
"fields": [{
"name": "OBJECTID",
"alias": "OBJECTID",
"show": false,
"format": null
}, {
"name": "LENGTH",
"alias": "LENGTH",
"show": true,
"format": {
"places": 2,
"digitSeparator": true
}
}, {
"name": "TYPE",
"alias": "TYPE",
"show": true,
"format": null
}, {
"name": "ADMN_CLASS",
"alias": "ADMN_CLASS",
"show": true,
"format": null
}, {
"name": "TOLL_RD",
"alias": "TOLL_RD",
"show": true,
"format": null
}, {
"name": "RTE_NUM1",
"alias": "RTE_NUM1",
"show": true,
"format": null
}, {
"name": "RTE_NUM2",
"alias": "RTE_NUM2",
"show": true,
"format": null
}, {
"name": "ROUTE",
"alias": "ROUTE",
"show": true,
"format": null
}]
},
"show": false
}],
"hideExportButton": false,
"initiallyExpand": true,
"filterByMapExtent": true
}