Skip to content


Subversion checkout URL

You can clone with
Download ZIP


Added the ability to enable/disable a group of radio buttons #362

wants to merge 8 commits into from
+20,770 −8,631

3 participants


Added the following:
*Function that allows you to disable/enable a group of radio buttons given a group name
Function that allows you to get the disable status of a group of radio buttons
**Function that allows you to get the disable status of an individual radio button


Forgot to tell you about the wiki as well. Can you update the wiki page for Radio Buttons with the new methods that you added:


I figured I would tie this together with issue #154 for enabling and disabling radio buttons #154


From taking a look at the enable/disable group of radio buttons, these group functions should be part of the _bb10_radio object.

We should also have an enable()/disable() function on each radio item.

For styling a radio button we should use some enabled/disabled classes instead of changing the style in javascript. This then allows the item to style itself as disabled when it finds the disabled attribute on first styling.


Thanks for the feedback. I'll get cracking on the points you mentioned. Should I get rid of this pull request? I'll work on the changes and then make another one.


@tneil After taking into account everything you posted above, this is a summary of all the functionality I have added:

1- Function to enable() a group of radio buttons -> enableGroup(groupName)
2- Function to disable() a group of radio buttons -> disableGroup(groupName)
3- Function to enable() an individual radio button -> enableRadio(radioId)
4- Function to disable() an individual radio button -> disableRadio(radioId)
5- Function to get the status of a group of radio buttons (i.e. if they are enabled or disabled) -> getGroupStatus(groupName)
6- Function to get the status of an individual radio button -> getRadioStatus(radioId)

*All the changes were first testing in the samples and then integrated into the _bb10_radio object in samples
All disabled styling is now done through CSS classes

If all these changes are okay, I can run the jakefile on it and move it into the pkg folder


The current pull request says that it cannot be merged automatically. Can you merge the latest code from the next branch into your changes first. You may have to close this pull request and open a new one.

@karancan karancan Merge branch 'next' of into next
@karancan karancan closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.