J
J
JuniorDeveloper2015-07-14 21:01:53
css
JuniorDeveloper, 2015-07-14 21:01:53

How to move the checkbox labels to the left and remove them?

Hello, I have this code (Yii 2->yii\bootstrap\ActiveForm) to create a checkboxList:

<?php echo $form->field($model, 'note_sms')->checkboxList($items); ?>
            <?php echo $form->field($model, 'note_email')->checkboxList($items); ?>

dfa9acf0a4324c89889bf1e38f82da3c.PNG
You need to remove the inscriptions to the checkboxes (email, message), and move them from right to left (sms). Clearly in the picture. How can I do that? Do not pass empty strings to $items?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
vyachin, 2015-07-14
@JuniorDeveloper

https://github.com/yiisoft/yii2/blob/master/framew...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question