mercredi 20 mai 2020

Yii2 activeCheckboxList style

I have an activeCheckboxList but the CSS styling for individual checkboxes won't work.

<div class="form-label"><?= Yii::t('youdate', 'Status') ?></div>
                <?= Html::activeCheckboxList($model, 'status', $model->my_getStatusOptions(),
                [
                'itemOptions' => [ 'class' => 'mycheckbox',
                       'labelOptions' => [
                           'style' => 'font-weight: normal',
                           'class' => 'Checkbox',
                          ],
                 ],
                 ]
                )
             ?>



Aucun commentaire:

Enregistrer un commentaire