Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

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

Closed
rvbhute opened this Issue · 3 comments

2 participants

@rvbhute

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

what??

@rvbhute

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.

radio-buttons

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

@rvbhute

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

Closing.

@rvbhute rvbhute 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.