An advanced slider input for Yii Framework 2 based on seiyria/bootstrap-slider plugin, which is a fork of the bootstrap-slider by Stefan Petre from eyecon.ru. The slider input offers these advanced features
Additional enhancements added for this widget (by Krajee):
You can see detailed documentation on usage of the extension.
Refer the CHANGE LOG for details on updates to various releases.
The preferred way to install this extension is through composer.
NOTE: Check the composer.json for this extension's requirements and dependencies. Read this web tip /wiki on setting the
minimum-stability
settings for your application's composer.json.
Either run
$ php composer.phar require kartik-v/yii2-slider "dev-master"
or add
"kartik-v/yii2-slider": "dev-master"
to the require
section of your composer.json
file.
use kartik\slider\Slider;
echo Slider::widget([
'name' => 'slider',
'sliderColor' => Slider::TYPE_DANGER,
'handleColor' => Slider::TYPE_DANGER,
'pluginOptions' => [
'orientation' => 'horizontal',
'handle' => 'round',
'min' => 0,
'max' => 255,
'step' => 1
],
]);
yii2-slider is released under the BSD-3-Clause License. See the bundled LICENSE.md
for details.