Feature Request: Create a jQuery UI radio button widget for TbActiveForm #429

rvbhute opened this Issue Mar 31, 2013 · 3 comments


None yet
2 participants

rvbhute commented Mar 31, 2013

Currently, there is the TbToggleButton widget which works from TbActiveForm; it is an enhancement of HTML check-box. The CJuiButton button widget complements the TbToggleButton beautifully and it can be used for HTML radio button groups.


magefad commented Mar 31, 2013


rvbhute commented Apr 1, 2013

Currently, I am using the following to get an inline radio button list:

$form->radioButtonListInlineRow($model, 'used_by_customer', array('Yes'=>'Yes', 'No'=>'No'));

I use the CJuiButton in the following manner : https://gist.github.com/rvbhute/5283428 It looks as shown below and works as conventional radio group.


How to condense the code used in the gist into another TbActiveForm method like radioButtonListInlineRow()?

rvbhute commented Apr 1, 2013

Found radioButtonGroupsListRow() in TbActiveForm.php. Exactly what I was talking about, except for the use of primary color for selected button.


rvbhute closed this Apr 1, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment