Customizing the Editor Widget

05-11-2020 07:33 PM
by Anonymous User
Not applicable

Hi Folks, I am developing an app using the ArcGIS JavaScript API and the Editor Widget. Everything works very well and is easy to implement, however I want to change the Title of the Editor Widget from "Editor" to "Comments". Further I want to be able to hide the Edit Feature option and change the name of the Add Feature option to "Add a Comment"

It seems like this should be possible with configuration settings, but I can't figure out how to do it. Is this possible and if so, how?

Thanks in advance for any help.


0 Kudos
1 Reply
Esri Contributor

I'm presuming you are using v4 of the API? If so, you can hide the Edit feature option through configuration:

Editor | ArcGIS API for JavaScript 4.15 

const editor = new Editor({ view: view, allowedWorkflows: ["update"] // allows only updates and no adds });

The title of widget buttons is held in strings files within the API. Given that you are probably getting the API from a CDN then you will have to find some way to override the html.