Hi, I've made my first widget and wanted to change the style of some elements, such as a button but I can´t get any results.
My html code for the "Consulta" button of the image is:
and its css:
Sorry but my level of developing widgets is low and I'm sure I'm making a lot of mistakes.
Thank you!
Solved! Go to Solution.
Hello Robert, thank you very much for fixing my widget, thanks to you I have learned more about Dojo and my widget works 100%. On the other hand, I've been testing another widget of yours, "Zoomgrid" and it works correctly, but I wanted to know if it's possible to hide the layer in the "Layerlist widget". I attached the "Zoomgrid" in this link: https://drive.google.com/open?id=1765kf1iaTj6MdIRG8uustdMJnlGr0wyA.
Thanks for all !
Angel,
Sure add this new line (line 5) to the widget.js:
this.statesLayer = new FeatureLayer("https://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer/5", {
mode: FeatureLayer.MODE_SELECTION,
outFields: ["ObjectID", "STATE_NAME", "POP2000"]
});
lang.setObject('_wabProperties.isTemporaryLayer', true, this.statesLayer);
Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.
This works correctly in the widget, thanks again Robert .
Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.
I think that I clicked on the "Mark Correct" now , this is correct?
Thanks and sorry
Now you got it.