i was trying to add image same as above pic in feature table and on row-select zoom to point
below is my code for featuretable i tried to add image for objectid
Any suggestions
Thanks
var myFeatureTable = new FeatureTable({
featureLayer: layerdata,
map: map,
editable: false,
dateOptions: {
datePattern: 'M/d/y',
timeEnabled: true,
timePattern: 'H:mm',
},
syncSelection: true,
showRelatedRecords: true,
showAttachments: true,
fieldInfos: [
{
name: 'OBJECTID',
alias: 'Zoom to Location',
}
],
menuFunctions: [
],
outFields: ["*"],
}, 'myTableNode');
myFeatureTable.startup();
function makeZoomButton(id) {
var zBtn = "<div data-dojo-type='dijit/form/Button'><img src='ZoomIn.png' alt='" + id + "'";
zBtn = zBtn + " width='18' height='18'></div>";
return zBtn;
}