Where does the feature actions code go in the select widget manifest? What's wrong with this? Can someone please show me a correct sample? Thanks, cob
{
"name": "Select2",
"platform": "HTML",
"version": "2.6",
"wabVersion": "2.6",
"author": "Esri R&D Center Beijing",
"description": "",
"copyright": "",
"license": "http://www.apache.org/licenses/LICENSE-2.0",
"properties": {
"supportMultiInstance": false,
"featureActions": [{
"name": "ShowVertex",
"uri": "ShowVertexFeatureAction"
}]
}
}
Solved! Go to Solution.
Robert I hate to keep bothering you, but just one more little question on this - how would I refresh (blank out) the html labels on widget open? (or close, whatever would be best to blank out the last measurement when the widget is closed and re-opened)? I get an error every time I touch the functions in the Widget.js, unexpected identifier. Thanks, cob
Cob in the widgets onOpen and onClose methods you can add code to set the dom elements innerHTML to “”
I would have to see the code you are attempting to know what you are doing wrong, because that should work.
Cob,
You do not have “dom” defined in your Widget.js requires. So that is your main issue.
OK, but before that the method causes an error even when there is no dom reference. If you change the OnOpen method back to just the console log you will see what I mean. Thanks, cob
Put a comma after the base class line.
Another duh moment – put the dom in the function. But for some reason it won’t accept the ‘length’ and ‘lengthmi’ doms in the OnOpen method, although it will in the On Close. Gives a dom not defined error…any idea why? Anyway it works well enough for now – thanks Robert!