YUILibrary - Open source JavaScript and CSS for building richly interactive software.
Fork YUI on GitHub
  • Home
  • Gallery
  • Forums
  • YUI 2
  • YUI 3
  • YUI Labs
  • YUI Compressor
  • More
  • Gallery Forums
  • Gallery Stats
  • Gallery Calendar
  • Register
  • Login

Modules

  • Home
  • Featured
  • Popular
  • New
  • All

Documentation

  • FAQ
  • Developer FAQ
  • Developer Guide
  • Module Setup

Tag Cloud

foxxtrot nzakas apipkin adam event jacobfogg yui2 jsonp port ericf tivac overlay node ajax skinnable widget slideshow jafl plugin io animation davglass form rgrove caridy lsmith

Context Navigation

    YUI Library is not responsible for bugs or support with this module. It is available as a free service. For support please contact the module owner with the provided links.

    Checkbox Groups (gallery-checkboxgroups) on cdn

    Last Updated: 05/25/10
    + 0 -

    John Lindal

    YUI Contributor

    See 11 more by this user.

    Created: 12/4/09
    Last CDN Push: 05/26/10
    Build Tag: gallery-2010.05.26-19-47
    Project: YUI 3
    License: YUI BSD
    YUI Version: 3.1.1
    Free for use.

    The available behaviors are:

    • At least one checkbox must be selected. Implements the drop-of-mercury behavior.
    • At most one checkbox must be selected. This is not the same as radio buttons, since a radio button cannot be deselected.
    • Select All checkbox as a secondary control for the state of the rest of the checkboxes in the group.

    More information is provided in the YUI Blog post: http://www.yuiblog.com/blog/2010/03/01/gallery-checkbox-group/

    • Tags:
    • checkbox
    • jafl
    • Download
    • Docs
    • Homepage
    • Bugs
    • Source
    • Example
    • Forum
    • History

    Attaches behaviors to groups of checkboxes.

    Code Sample

    <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');
    });

    Forum Posts

    Subject Author Date
    Blog article on CheckBox Groups Eric Miraglia 03/2/10
    YUI Projects
    • All YUI Downloads
    • YUI 2
    • YUI 3
    • YUI Doc
    • YUI Compressor
    • YUILibrary.com
    • YUI Build Tool
    • YUI PHP Loader
    YUI Labs
    • All YUI Labs Projects
    • Yeti
    Pages & Links
    • All YUI Downloads
    • Git FAQ
    • Graded Browser Support
    • Contribute to YUI
    • Forum Stats
    • Gallery Stats
    • YUI Calendar
    Contribute
    • Submit a Bug
    • Request a Feature
    • Write Code
    • Meet the Team
    Follow YUI
    • on GitHub
    • on Twitter
    • on FriendFeed
    • on Facebook
    • on IRC
    • YUI Blog
    • YUI Theater
    • YUI Forums

    © 2010 YUI Library - Site Credits