Login Register

dijit.form.RadioButton does not exist in download

I downloaded dojo/dijit/digitx 1.2.2. I cannot find a RadioButton.js file anywhere in these folders. So, I can't reference dojo.require("dijit.form.RadioButton"); in my code. I downloaded again a few days later with the same result. Was it accidentally removed or am I missing the location? Thanks :)

I found the answer. The

I found the answer. The require statment uses CheckBox, while the dojoType attribute uses the RadioButton. I read that the RadioButton is contained in the CheckBox.

dojo.require("dijit.form.CheckBox");
...
dojoType="dijit.form.RadioButton"

Yes, there are a few places

Yes, there are a few places this happens, but not very often. In 1.3 there will be a 1:1 mapping of dojo.require -> dojoType usage for public classes like RadioButton