Select to view content in your preferred language

Editor Widget - Create features , Update - Enable & Disable

347
3
11-21-2024 04:17 AM
MANESK
by
Occasional Contributor

Hi,

How to disable Create Features in the Editor Widget. i tried using the below mentioned properties , but i didn't have any luck to disable it. I'm using 4.31 version. Any help in this regard is appreciated.

const editor = new Editor({
layerInfos: [editConfigPolyLayer],
view: view,

addEnabled: false, 
updateEnabled: false, 
deleteEnabled: true
});
0 Kudos
3 Replies
kevin_lawler21
Occasional Contributor

This last update broke the edit widget in all of my Experience Builder web apps.  The part of the widget that should allow you to do this (The customize Radio button) is what seems to be broken.

kevin_lawler21_5-1732194955432.pngkevin_lawler21_6-1732194971848.png

 

0 Kudos
MANESK
by
Occasional Contributor

Thanks Kevin... It's fine for Experience Builder apps... But I'm using in ArcGis Javascript API. I can't figure the work around for it.. Any suggestions would be very helpful

0 Kudos
JoelBennett
MVP Regular Contributor

According to the documentation for layerInfos, addEnabled, updateEnabled, and deleteEnabled are properties of the LayerInfo objects, not the Editor itself:

const editor = new Editor({
	view: view,
	layerInfos: [
		layer: editConfigPolyLayer,
		addEnabled: false, 
		updateEnabled: false, 
		deleteEnabled: true
	]
});

 

0 Kudos