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.5.1/build/yui/yui-min.js"></script>YUI({
//Last Gallery Build of this module
gallery: 'gallery-2012.05.16-20-37'
}).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');
// attaches behavior to all checkboxes with CSS class "my-enable-if-any-checkbox-group",
// to enable/disable all nodes with CSS class "managed" (typically buttons)
new Y.EnableIfAnyCheckboxGroup('.my-enable-if-any-checkbox-group', '.managed');
});| Subject | Author | Date |
|---|---|---|
| Blog article on CheckBox Groups | Eric Miraglia | 03/2/10 |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info