Select to view content in your preferred language

Extend AttributeInspector Class

676
1
01-02-2013 01:10 AM
MicheleDe_Santis
Emerging Contributor
Hi to all,

is it possible to extend the AttributeInspector Class? I would like to add a new button with an on-Click event, like the Delete Button.

Thanks in advance for any help.

regards
michele
0 Kudos
1 Reply
JakeSkinner
Esri Esteemed Contributor
Hi Michele,

Yes this is possible.  Here is an example:

var saveButton = new dijit.form.Button({label:"Save","class":"saveButton"});
dojo.place(saveButton.domNode, attInspector.deleteBtn.domNode, "after");
   
dojo.connect(saveButton, "onClick", function(){
    updateFeature.getLayer().applyEdits(null, [updateFeature], null); 
    map.infoWindow.hide();        
  });
0 Kudos