2017 © Pedro Peláez
 

yii2-extension yii2-bootstrap-toggle

Yii2 bootstrap-toggle widget

image

loveorigami/yii2-bootstrap-toggle

Yii2 bootstrap-toggle widget

  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 5 Forks
  • 0 Open issues
  • 3 Versions
  • 17 % Grown

The README.md

Bootstrap Toggle widget for Yii 2

This extension provides the Bootstrap-toggle integration for the Yii2 framework., (*1)

Installation

This extension requires Bootstrap-toggle, (*2)

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

Either run, (*4)

php composer.phar require --prefer-dist loveorigami/yii2-bootstrap-toggle "*"

or add, (*5)

"loveorigami/yii2-bootstrap-toggle": "*"

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

General Usage

use lo\widgets\Toggle;

Toggle::widget(
    [
        'name' => 'status', // input name. Either 'name', or 'model' and 'attribute' properties must be specified.
        'checked' => true,
        'options' => [], // checkbox options. More data html options [see here](http://www.bootstraptoggle.com)
    ]
)

or with active form as, (*7)

    <?= $form->field($model, 'status')->widget(Toggle::className(),
        [
            'options' =>[
                'id' => 'my-id',
            ]
        ]
    ); ?>

The Versions

08/12 2016

dev-master

9999999-dev

Yii2 bootstrap-toggle widget

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

yii2 bootstrap widget toggle

12/05 2016

1.1

1.1.0.0

Yii2 bootstrap-toggle widget

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

yii2 bootstrap widget toggle

13/08 2015

1.0

1.0.0.0

Yii2 bootstrap-toggle widget

  Sources   Download

GPL-3.0+

The Requires

 

The Development Requires

yii2 bootstrap widget toggle