Anthony,
In that case then direct dom manipulation is best:
Add 'dojo/query' require to the widget.js and then make these changes to the startup function (lines 20 - 23):
startup: function() {
if (this.measurement || this._pcDef) {
return;
}
this.inherited(arguments);
var json = this.config.measurement;
json.map = this.map;
if (json.lineSymbol) {
json.lineSymbol = jsonUtils.fromJson(json.lineSymbol);
}
if (json.pointSymbol) {
json.pointSymbol = jsonUtils.fromJson(json.pointSymbol);
}
this._processConfig(json).then(lang.hitch(this, function(measurementJson) {
this.measurement = new Measurement(measurementJson, this.measurementDiv);
this.own(aspect.after(this.measurement, 'setTool', lang.hitch(this, function() {
if (this.measurement.activeTool) {
var measLbl = query(".esriMeasurementResultLabel", this.domNode)[0];
if(measLbl){
measLbl.innerHTML = measLbl.innerText = "My Measurement Result";
}
this.disableWebMapPopup();
} else {
this.enableWebMapPopup();
}
})));
this.measurement.startup();
}), lang.hitch(this, function(err) {
new Message({
message: err.message || err
});
}));
},