Hello community members, I am GIS developer working on a certain project where I need to call the editor widget in a division on a click event.
Hi,
view.ui.add should be used to add something (i.e. a widget/HTML element) to a certain position in the view (i.e. "top-right" or "bottom-left"). It is not used to add elements into other HTML elements. This might be what is causing your issue.
https://developers.arcgis.com/javascript/latest/api-reference/esri-views-ui-DefaultUI.html#add