var layerInfo = [{ 'featureLayer': results[0].layer, 'showAttachments':true, 'showDeleteButton':false, 'isEditable':true, 'fieldInfos':[ {'fieldName':'requesttype','label':'Type','isEditable':true}, {'fieldName':'address_num','label':'Issue Address #','isEditable':true}, {'fieldName':'streetname','label':'Issue Street Name','tooltip': 'Start typing the street name for the list to populate','isEditable':true}, {'fieldName':'email','label':'Contact Info','isEditable':true}, {'fieldName':'comment','label':'Comments','isEditable':true,'stringFieldOption':esri.dijit.AttributeInspector.STRING_FIELD_OPTION_TEXTAREA} ] }];
function deleteFeature(){ var graphics = citizenRequestLayer.getSelectedFeatures(); if(graphics.length > 0){ //remove any features citizenRequestLayer.applyEdits(null,null,graphics,function(){ console.log('Features deleted'); $.mobile.changePage("#mapPage",null,true,true); }); } }
<div data-role="page" id="attributeDialog" data-theme="c"> <div data-role="header" data-backbtn="false"> <h1>Report</h1> </div> <div data-role="content" data-inset="true"> <!--<center><h6>(Please use the delete button to restart if the estimated location is incorrect)</h6></center>--> <div> Estimated Location: <div id="currentAddress" title="Estimated Location" style="font-weight:bold;text-align:center;width:100%;"></div> </div> <br> <a href="#" data-role="button" onclick="deleteFeature();" data-inline='true'>Delete</a> <br> <div id="attributeDiv"></div> <br> <a href="http://gis.manchesterct.gov/MObile/IssueRequests.html" onclick="alertsubmit();" data-role="button">Finish</a> </div> </div>
<div class="ui-btn ui-btn-corner-all ui-shadow ui-btn-up-c" data-theme="c" aria-disabled="false">
$.mobile.changePage("#deleteDialog",null,true,true)
I was able to move the delete button to the top of the page using position:absolute !important;top:20% !important;margin-left:30% !important;I would now like to modify the delete icon since it has a strange bubble underneath it. I've been trying to use the atiDeleteIcon but not having much success. I've tried it a few different ways such as .esriAttributeInspector .atiDeleteIcon{ but nothing seems to change. Has anyone else changed an icon yet of either the previous, next, or last icon?Also has anyone been able to change the screen that shows up after you click the delete button? I'd like to add some information on that page but all it displays is the geocoded address and "No Features Selected".
position:absolute !important;top:20% !important;margin-left:30% !important;
.esriAttributeInspector .atiDeleteIcon{
.esriAttributeInspector .atiLayerName {display:none;} .saveButton { margin:0px; width:16px; height:16px; background-image:url('save.png')!important; background-repeat:no-repeat; } .... var saveButton = new dijit.form.Button({"iconClass":"saveButton"});
.esriAttributeInspector .atiDeleteButton { color:red !important; }
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.