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>
Solved! Go to Solution.
Helen,
In your Widget,js do you have "dijit/form/CheckBox" in your require array? Also do you have _WidgetsInTemplateMixin in your declare array?
Helen,
In your Widget,js do you have "dijit/form/CheckBox" in your require array? Also do you have _WidgetsInTemplateMixin in your declare array?
After adding _WidgetsInTemplateMixin to widget.js, it works. Thanks for help
Great. Don't forget to mark this question as answered by clicking on the "Mark Correct" link on the reply that answered your question.