Hello Robert,
Specifically, and trying to follow the example of the Draw widget:
To Widget.html, I add the div
div data-dojo-attach-point="drawBox" data-dojo-type="jimu/dijit/DrawBox" data-dojo-props='types:["point","polyline","polygon"],showClear:false' style="margin-top:5px;"></div>
To Widget.js I add
'jimu/dijit/DrawBox' reference in define([],
In the postCreate are simply these lines:
this.inherited(arguments);
this.drawBox.setMap(this.map);
When I test it in Chrome, it breaks with this error
"TypeError: this.drawBox.setMap is not a function(…) "TypeError: this.drawBox.setMap is not a function..."
Is there a way to see the exposed methods and properties? Coming from Silverlight, and without documentation WAB widget development is at least an order of magnitude slower I am finding.
Thanks for any insight!