Build version of ibm-js/deliteful/Checkbox.
No official release yet.
Bower release installation:
$ bower install "https://github.com/edchat/deliteful-Checkbox-build.git"
In the future (after it is published) it will be:
$ bower install deliteful-Checkbox-build
To load the minified layer and it's dependencies you have two options, you can include them with script tags, or you can wrap your main require
call with another require
, requiring "delite-fullBuild/fullBuild", "deliteful-Checkbox-build/layer"
. Then you should continue to refer to modules
with "deliteful/Checkbox"
.
For example, to wrap the main require with another require, this code:
require(["app/main", "deliteful/Checkbox"], function() {
...
});
Becomes:
require(["delite-fullBuild/fullBuild", "deliteful-Checkbox-build/layer"], function() {
require(["app/main", "deliteful/Checkbox"], function() {
...
});
});
Or you can load the "deliteful-Checkbox-build/layer" and the "delite-fullBuild/fullBuild" with script tags, without the extra require for "deliteful-Checkbox-build/layer"
like this:
<script src="bower_components/delite-fullBuild/fullBuild.js"></script>
<script src="bower_components/deliteful-Checkbox-build/layer.js"></script>
Then to use the Checkbox widget with a declarative instantiation, add this to your html:
<label>
<d-checkbox name="option1" checked="true"></d-checkbox>
Option 1
</label>
<label>
<d-checkbox name="option2"></d-checkbox>
Option 2
</label>
<label>
<d-checkbox disabled="true" name="option3"></d-checkbox>
Option 3
</label>
See deliteful/Checkbox
for full details on how instantiate a Checkbox widget.
This project is distributed by the Dojo Foundation and licensed under the "New" BSD License. All contributions require a Dojo Foundation CLA.