Get active button state in widget

240
2
01-19-2021 04:45 PM
NovicaJ
New Contributor III

I am trying to check if a button is clicked in the Measurement widget. Any ideas on how to do this?

I want to do something when the extent is active

NovicaJ_0-1611103534389.png

 

Tags (3)
0 Kudos
2 Replies
RobertScheitlin__GISP
MVP Esteemed Contributor

Which widget is this. It does not look like the OTB Measurement widget or Tom's custom Measure widget...?

0 Kudos
VictorTey
Esri Contributor

you can just check the dom for a specific class name assuming it is using css class to change the look.

https://dojotoolkit.org/reference-guide/1.7/dojo/hasClass.html

If you are unable to get a handle to the dom, you can try using https://dojotoolkit.org/reference-guide/1.9/dojo/query.html