ekaragodin/yii2-bootstrap-slider

Bootstrap slider control

Installs: 6 380

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 2

Language:CSS

Type:yii2-extension

dev-master 2014-04-01 11:24 UTC

This package is auto-updated.

Last update: 2024-04-09 13:15:36 UTC


README

Bootstrap slider control

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist ekaragodin/yii2-bootstrap-slider "*"

or add

"ekaragodin/yii2-bootstrap-slider": "*"

to the require section of your composer.json file.

Usage

Once the extension is installed, simply use it in your code by :

<?= Slider::widget([
        'name' => 'price',
        'value' => $model->price,
        'options' => [
            'data' => [
                'slider-min' => 100,
                'slider-max' => 1000,
            ],
        ],
    ]) ?>