Commits

Insolita Donna  committed d52d717

Add to QToggle ability to show all options in select-box and ajax update on select change

  • Participants
  • Parent commits 8dd0300

Comments (0)

Files changed (1)

     ?>
 
 New Qtoggle usage demo:
+
  <?php
 
     $this->widget('zii.widgets.grid.CGridView', array(
                                             'htmlOptions'=>array('style'=>'text-align:center;min-width:60px;')
                     ),
                     array(
+                                                                'class'=>'JToggleColumn',
+                                                                'filter' => array('0' => 'Draft', '1' => 'Premod',2=>'Public','3'=>'Archive'), // filter
+                                                                'name'=>'varsel',
+                                                                'action'=>'qtoggle',
+                                                                'queueType'=>'select',  //Show all options in dropdownlist
+                                                                'queue'=>array('0' => 'Opt1', '1' => 'Opt2',2=>'Opt3','3'=>'Opt4'),
+                                                                'queueTitles'=>array('0' => 'Opt1', '1' => 'Opt2',2=>'Opt3','3'=>'Opt4'),
+                                                                'labeltype'=>'text',
+                                                                'htmlOptions'=>array('style'=>'text-align:center;min-width:60px;')
+                                        ),
+                    array(
                             'class'=>'CButtonColumn',
                     ),
             ),