Last active
February 24, 2017 22:02
-
-
Save keithslater/a022b98c840e3be63ddb34fbbf2009c0 to your computer and use it in GitHub Desktop.
Yii2 Toggle checkbox
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php echo $form->field($model->notifications, "status", ['checkboxTemplate' => ' | |
<span class="label">{label}</span> | |
<label class="toggle-inner"> | |
{input} | |
<div class="toggle-background"></div> | |
<div class="toggle-button"></div> | |
</label> | |
','options' => [ | |
'tag' => null, | |
],])->checkbox()->label($notification->type->name); ?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment