John Lindal![]()
The available behaviors are:
More information is provided in the YUI Blog post: http://www.yuiblog.com/blog/2010/03/01/gallery-checkbox-group/
Attaches behaviors to groups of checkboxes.
<script src="http://yui.yahooapis.com/3.1.0/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2010.05.26-19-47'
}).use('gallery-checkboxgroups', function(Y)
{
// attaches behavior to all checkboxes with CSS class "my-at-least-one-checkbox-group"
new Y.AtLeastOneCheckboxGroup('.my-at-least-one-checkbox-group');
// attaches behavior to all checkboxes with CSS class "my-at-most-one-checkbox-group"
new Y.AtMostOneCheckboxGroup('.my-at-most-one-checkbox-group');
// attaches behavior to all checkboxes with CSS class "my-select-all-checkbox-group",
// controlled by the checkbox with id "my-select-all-checkbox"
new Y.SelectAllCheckboxGroup('#my-select-all-checkbox', '.my-select-all-checkbox-group');
});| Subject | Author | Date |
|---|---|---|
| Blog article on CheckBox Groups | Eric Miraglia | 03/2/10 |
© 2010 YUI Library - Site Credits