2017 © Pedro Peláez
 

yii2-extension yii2-ion-slider

Ion.RangeSlider Widget for Yii 2

image

yii2mod/yii2-ion-slider

Ion.RangeSlider Widget for Yii 2

  • Tuesday, August 15, 2017
  • by disem
  • Repository
  • 7 Watchers
  • 22 Stars
  • 16,484 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 8 Forks
  • 0 Open issues
  • 6 Versions
  • 13 % Grown

The README.md

, (*1)

RangeSlider Extension for Yii 2


Widget based on Ion.RangeSlider extension, (*2)

Latest Stable Version Total Downloads License Build Status, (*3)

Installation

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

Either run, (*5)

php composer.phar require --prefer-dist yii2mod/yii2-ion-slider "*"

or add, (*6)

"yii2mod/yii2-ion-slider": "*"

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

Usage

Once the extension is installed, simply add widget to your page as follows:, (*8)

1) Usage with ActiveForm and model, (*9)

echo $form->field($model, "attribute")->widget(\yii2mod\slider\IonSlider::className(), [
        'pluginOptions' => [
           'min' => 0,
           'max' => 1,
           'step' => 1,
           'onChange' => new \yii\web\JsExpression('
                function(data) {
                     console.log(data);
                }
           ')
         ]
]); 

2) Usage without ActiveForm and model, (*10)

echo \yii2mod\slider\IonSlider::widget([
    'name' => 'slider',
    'type' => \yii2mod\slider\IonSlider::TYPE_DOUBLE,
    'pluginOptions' => [
        'min' => 0,
        'max' => 20,
        'from' => 2,
        'to' => 18,
        'step' => 1,
        'hide_min_max' => true,
        'hide_from_to' => true
    ]
]);

To change the slider skin, you can configure the assetManager array in your application configuration:, (*11)

'assetManager' => [
            'bundles' => [
                'yii2mod\slider\IonSliderAsset' => [
                    'css' => [
                        'css/normalize.css',
                        'css/ion.rangeSlider.css',
                        'css/ion.rangeSlider.skinFlat.css'
                     ]
                ],
            ],
        ]

Slider Options

You can customize the slider using pluginOptions, using one of the plugin options. Note that the type option should be configured on its own, and is not part of the pluginOptions array., (*12)

The Versions

15/08 2017

dev-master

9999999-dev

Ion.RangeSlider Widget for Yii 2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Igor Chepurnoy

yii2 yii2 ion slider yii2 slider yii2 range slider

16/04 2017

1.2

1.2.0.0

Ion.RangeSlider Widget for Yii 2

  Sources   Download

MIT

The Requires

 

The Development Requires

by Igor Chepurnoy

yii2 yii2 ion slider yii2 slider yii2 range slider

27/07 2016

1.1

1.1.0.0

Ion.RangeSlider Widget for Yii 2

  Sources   Download

MIT

The Requires

 

by Igor Chepurnoy

yii2 yii2 ion slider yii2 slider yii2 range slider

10/03 2016

1.0.2

1.0.2.0

Ion Slider widget based on Ion.RangeSlider extension {@link http://ionden.com/a/plugins/ion.rangeSlider/en.html)

  Sources   Download

MIT

The Requires

  • bower-asset/ionrangeslider *

 

by Igor Chepurnoy

yii2 module

03/03 2016

1.0.1

1.0.1.0

Ion Slider widget based on Ion.RangeSlider extension {@link http://ionden.com/a/plugins/ion.rangeSlider/en.html)

  Sources   Download

MIT

The Requires

  • bower-asset/ion.rangeslider *

 

by Igor Chepurnoy

yii2 module

17/06 2015

1.0

1.0.0.0

Ion Slider widget based on Ion.RangeSlider extension {@link http://ionden.com/a/plugins/ion.rangeSlider/en.html)

  Sources   Download

MIT

The Requires

  • bower-asset/ion.rangeslider *

 

by Igor Chepurnoy

yii2 module