Reputation: 12182
What is wrong with this simple jsfiddle example using dojo 1.8: http://jsfiddle.net/ractive/qKW2G/3/
The button widget is not loaded on startup, although parseOnLoad is set to true in the data-dojo-config attribute:
data-dojo-config="async: true, parseOnLoad: true"
Upvotes: 1
Views: 1503
Reputation: 8162
If you run with async: true
, then you need to include the parser and button in the require.
require(["dojo/parser", "dojo/on", "dojo/dom", "dijit/form/Button"],
function(parser, on, dom) {
...
});
If you run with async: false
, then parser and the widgets will be required automatically.
Upvotes: 1