Check box in widget shows textbox

639
3
Jump to solution
09-24-2019 10:09 AM
HelenZhou
Occasional Contributor II

I am adding a checkbox to a widget. But when I run the application, it becomes a textbox. here is the widget.html. It is very simple and only has on div to hold checkbox.

Can anybody help? Thanks

Helen

<div>                  
    <div> <input data-dojo-type="dijit/form/CheckBox" data-dojo-attach-point="chkBBC"  data-dojo-attach-event=""/> Bastketball Court</div>
</div>

0 Kudos
1 Solution

Accepted Solutions
RobertScheitlin__GISP
MVP Emeritus

Helen,

  In your Widget,js do you have "dijit/form/CheckBox" in your require array? Also do you have _WidgetsInTemplateMixin in your declare array?

View solution in original post

0 Kudos
3 Replies
RobertScheitlin__GISP
MVP Emeritus

Helen,

  In your Widget,js do you have "dijit/form/CheckBox" in your require array? Also do you have _WidgetsInTemplateMixin in your declare array?

0 Kudos
HelenZhou
Occasional Contributor II

After adding _WidgetsInTemplateMixin to widget.js, it works. Thanks for help

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Great. Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.

0 Kudos