2017 © Pedro Peláez
 

yii2-extension yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

image

kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

  • Wednesday, February 7, 2018
  • by kartik-v
  • Repository
  • 4 Watchers
  • 25 Stars
  • 129,591 Installations
  • PHP
  • 10 Dependents
  • 0 Suggesters
  • 21 Forks
  • 8 Open issues
  • 12 Versions
  • 9 % Grown

The README.md

Krajee Logo
yii2-slider
Donate

Stable Version Unstable Version License Total Downloads Monthly Downloads Daily Downloads, (*1)

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, (*2)

  • vertical or horizontal orientation of slider
  • setup your minimum and maximum values
  • setup your step increments
  • range selector (multiple handles to control the range)
  • three shapes for handles
  • touch capablity and support for touch devices

Additional enhancements added for this widget (by Krajee):, (*3)

  • allows to configure slider selection and handle colors.
  • preselected styles to color your slider and handles.
  • automatically trigger change of base field on slider stop to enforce Yii ActiveField validation
  • automatically set plugin options based on base field value (parse array input value for range)
  • automatically disable slider based on disabled/readonly options.

Demo

You can see detailed documentation on usage of the extension., (*4)

Latest Release

Refer the CHANGE LOG for details on updates to various releases., (*5)

Installation

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

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., (*7)

Either run, (*8)

$ php composer.phar require kartik-v/yii2-slider "dev-master"

or add, (*9)

"kartik-v/yii2-slider": "dev-master"

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

Usage

Slider

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
    ],
]); 

License

yii2-slider is released under the BSD-3-Clause License. See the bundled LICENSE.md for details., (*11)

The Versions

07/02 2018

dev-master

9999999-dev https://github.com/kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

  Sources   Download

BSD-3-Clause BSD 3-Clause

The Requires

 

extension yii2 bootstrap range widget slider bootstrap 3

10/01 2016

v1.3.2

1.3.2.0 https://github.com/kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 bootstrap range widget slider bootstrap 3

05/05 2015

v1.3.1

1.3.1.0 https://github.com/kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 bootstrap range widget slider bootstrap 3

25/11 2014

1.4.0.x-dev

1.4.0.9999999-dev https://github.com/kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 bootstrap range widget slider bootstrap 3

10/11 2014

1.3.0.x-dev

1.3.0.9999999-dev https://github.com/kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 bootstrap range widget slider bootstrap 3

10/11 2014

v1.3.0

1.3.0.0 https://github.com/kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 bootstrap range widget slider bootstrap 3

27/10 2014

1.2.0.x-dev

1.2.0.9999999-dev https://github.com/kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 bootstrap range widget slider bootstrap 3

27/10 2014

v1.2.0

1.2.0.0 https://github.com/kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 bootstrap range widget slider bootstrap 3

06/10 2014

1.1.0.x-dev

1.1.0.9999999-dev https://github.com/kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 bootstrap range widget slider bootstrap 3

06/10 2014

v1.1.0

1.1.0.0 https://github.com/kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 bootstrap range widget slider bootstrap 3

20/06 2014

1.0.0.x-dev

1.0.0.9999999-dev https://github.com/kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 bootstrap range widget slider bootstrap 3

20/06 2014

v1.0.0

1.0.0.0 https://github.com/kartik-v/yii2-slider

An advanced slider input for Yii Framework 2 for both touch enabled and desktop devices based on bootstrap-slider.

  Sources   Download

BSD 3-Clause

The Requires

 

extension yii2 bootstrap range widget slider bootstrap 3