ekaragodin / yii2-bootstrap-slider
Bootstrap slider control
Installs: 6 386
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 0
Open Issues: 2
Language:CSS
Type:yii2-extension
Requires
This package is auto-updated.
Last update: 2024-12-09 14:50:39 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, ], ], ]) ?>