2017 © Pedro Peláez
 

yii2-extension yii2-bootstrap-switch

Renders a Bootstrap Toggle Switch plugin widget.

image

oakcms/yii2-bootstrap-switch

Renders a Bootstrap Toggle Switch plugin widget.

  • Wednesday, June 1, 2016
  • by scriptua
  • Repository
  • 1 Watchers
  • 0 Stars
  • 227 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 4 % Grown

The README.md

Bootstrap Switch Widget for Yii2

Renders a Bootstrap Toggle Switch plugin widget., (*1)

Installation

The preferred way to install this extension is through composer., (*2)

Either run, (*3)

php composer.phar require --prefer-dist oakcms/yii2-bootstrap-switch "*"

or add, (*4)

"oakcms/yii2-bootstrap-switch": "*"

to the require section of your composer.json file., (*5)

Usage

Once the extension is installed, simply use it in your code by :, (*6)

<?= $form->field($model, 'field')->widget(\oakcms\bootstrapswitch\Switcher::className()) ?>

Or, (*7)

<?= \oakcms\bootstrapswitch\Switcher::widget([
    'name' => 'Name',
    'checked' => true,
    'clientOptions' => [
        'size' => 'large',
        'onColor' => 'success',
        'offColor' => 'danger'
    ]
]); ?>

The Versions

01/06 2016

dev-master

9999999-dev

Renders a Bootstrap Toggle Switch plugin widget.

  Sources   Download

GPL-3.0

The Requires

 

by Avatar scriptua

yii2 extension bootstrap-switch oakcms

01/06 2016

v1.0.0

1.0.0.0

Renders a Bootstrap Toggle Switch plugin widget.

  Sources   Download

GPL-3.0

The Requires

 

by Avatar scriptua

yii2 extension bootstrap-switch oakcms