Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Hi,
Thanks a lot for this wonderful module. The only thing I did not liked or found missing is there is no
attribute to add label to both enabled & disabled.
I would really love it if we could have a form element like this
$form['country_selector'] = array(
'#title' => t('Select Countries'),
'#type' => 'jquery_selector',
'#description' => t('Some description here'),
'#options' => array(
'#enabled' => array(
'label' => 'Players',
'values' => ''one'=>'one', 'two'=>'two', 'three'=>'three',
),
'#disabled' => array(
'label' => 'Players in Team',
'values' => 'four'=>'four', 'five'=>'five', 'six'=>'six'
),
),
'#default_value' => array('one'=>'one', 'two'=>'two', 'three'=>'three', 'four'=>'four', 'five'=>'five', 'six'=>'six'),
);
NOTE: Pls do ignore typos.
and the label's are assigned over the box itself.
Pls do let me know if it is possible.
Thanks for the good work :-) .
Comments
Comment #1
lashad CreditAttribution: lashad commentedThanks.
Very good point. Will add in the next release.
Comment #2
junedkazi CreditAttribution: junedkazi commentedwhen is the next version release date ?
Thanks
Juned Kazi