The Editor widget is comprised of a bunch of other widgets including the: TemplatePicker, AttributeInspector, Edit Toolbar etc. If you don't want the attribute inspector to display take a look at the Editing without the Editor sample. This sample shows how to use the individual components of the Editor that you are interested in to edit features.
https://developers.arcgis.com/en/javascript/jssamples/ed_feature_creation.html
var layers = arrayUtils.map(evt.layers, function(result) { return { featureLayer: result.layer }; }); var attributeInspector = new AttributeInspector({layerInfos: layers}, dojo.create("div")); var settings = { attributeInspector: attributeInspector, map: map, templatePicker: templatePicker, layerInfos: layers, toolbarVisible: true, createOptions: { polylineDrawTools:[ Editor.CREATE_TOOL_FREEHAND_POLYLINE ], polygonDrawTools: [ Editor.CREATE_TOOL_FREEHAND_POLYGON, Editor.CREATE_TOOL_CIRCLE, Editor.CREATE_TOOL_TRIANGLE, Editor.CREATE_TOOL_RECTANGLE ] }, toolbarOptions: { reshapeVisible: true } };
Haven't tested it fully but you might try passing in an attribute inspector that isn't displayed when you create the editor. Something like this:var layers = arrayUtils.map(evt.layers, function(result) { return { featureLayer: result.layer }; }); var attributeInspector = new AttributeInspector({layerInfos: layers}, dojo.create("div")); var settings = { attributeInspector: attributeInspector, map: map, templatePicker: templatePicker, layerInfos: layers, toolbarVisible: true, createOptions: { polylineDrawTools:[ Editor.CREATE_TOOL_FREEHAND_POLYLINE ], polygonDrawTools: [ Editor.CREATE_TOOL_FREEHAND_POLYGON, Editor.CREATE_TOOL_CIRCLE, Editor.CREATE_TOOL_TRIANGLE, Editor.CREATE_TOOL_RECTANGLE ] }, toolbarOptions: { reshapeVisible: true } };
I will have a look at this, but is there any documentation on how the editor widget can be customized? Surely, I can disable functionality that I do not want with the editor widget and template picker.
Ian,
This type of capability is currently not documented for the Editor widget. In general the Editor widget is designed to be used as a whole. You can customize various options such as which tools display on the toolbar and that is documented.