PHP code example of coderius / yii2-toggle-switcher-widget
1. Go to this page and download the library: Download coderius/yii2-toggle-switcher-widget library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
coderius / yii2-toggle-switcher-widget example snippets
echo $form->field($model, 'flagActive')->widget(ToggleSwitchWidget::classname(), [
'type' => ToggleSwitchWidget::CHECKBOX
]);
<?= $form->field($model, 'status')->widget(ToggleSwitchWidget::classname());
php composer.phar