I'm adding a checkbox on my widget that turns labels on or off on a particular layer. However, it doesn't respond to the click event "showCoinLabels" as defined in data-dojo-attach-event
<div data-dojo-type="jimu/dijit/CheckBox" data-dojo-attach-point="chkCoinLabels" style="margin-top: 5px;" data-dojo-attach-event="onClick: showCoinLabels"></div><label class="jimu-leading-margin05">Show Coin Labels</label><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>
If I substitute a jimu-btn, that will fire the event
<SPAN class="operator token"><</SPAN>div data<SPAN class="operator token">-</SPAN>dojo<SPAN class="operator token">-</SPAN>attach<SPAN class="operator token">-</SPAN>point<SPAN class="operator token">=</SPAN><SPAN class="string token">"btntest"</SPAN> id<SPAN class="operator token">=</SPAN><SPAN class="string token">"chkCoinLabels"</SPAN> <SPAN class="keyword token">class</SPAN><SPAN class="operator token">=</SPAN><SPAN class="string token">"jimu-btn apply"</SPAN> data<SPAN class="operator token">-</SPAN>dojo<SPAN class="operator token">-</SPAN>attach<SPAN class="operator token">-</SPAN>event<SPAN class="operator token">=</SPAN><SPAN class="string token">"onclick:showCoinLabels"</SPAN> style<SPAN class="operator token">=</SPAN><SPAN class="string token">"margin-top: 10px"</SPAN><SPAN class="operator token">></SPAN>Show Coin Labels<SPAN class="operator token"><</SPAN><SPAN class="operator token">/</SPAN>div<SPAN class="operator token">></SPAN><SPAN class="line-numbers-rows"><SPAN></SPAN></SPAN>