Edit
The Edit widget provides editing capabilities using an editable layer in a feature service. It combines the TemplatePicker, AttachmentEditor, AttributeInspector, and GeometryService to provide feature and attribute editing.
Configurable attributes
The following table describes the configurable attributes of the Edit widget.
Attribute | Description |
---|---|
editor | An object of ArcGIS API for JavaScript. See the parameters of the Editor constructor in the Constructor details documentation.
|
Example
{
"editor": {
"enableUndoRedo": true,
"toolbarVisible": true,
"toolbarOptions": {
"mergeVisible": true,
"cutVisible": true,
"reshapeVisible": true
},
"layerInfos": [{
"featureLayer": {
"id":"Wildfire_4234"
},
"disableGeometryUpdate": true,
"fieldInfos": [{
"fieldName": "rotation",
"isEditable": false
}, {
"fieldName": "description",
"isEditable": true
}, {
"fieldName": "eventdate",
"label": "Event Date",
"isEditable": false
}, {
"fieldName": "eventtype",
"label": "Event Type",
"isEditable": false
}]
}, {
"featureLayer": {
"id":"Wildfire_6333"
},
"disableGeometryUpdate": true,
"fieldInfos": [{
"fieldName": "symbolid",
"isEditable": false
}, {
"fieldName": "description",
"isEditable": true
}]
}],
"tableInfos": [],
"useFilterEdit": false,
"autoApplyEditWhenGeometryIsMoved": false,
"snappingTolerance": 15,
"popupTolerance": 5,
"stickyMoveTolerance": 0
}
}