Skip to content

Commit 7f4a7b1

Browse files
author
Igor Chepurnoy
committed
Merge pull request #3 from machour/patch-1
Update README.md
2 parents c4ca563 + c44cd34 commit 7f4a7b1

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,17 +44,20 @@ echo $form->field($model, "attribute")->widget(IonSlider::className(), [
4444
```php
4545
echo IonSlider::widget([
4646
'name' => "slider",
47+
'type' => "double",
4748
'pluginOptions' => [
4849
'min' => 0,
4950
'max' => 20,
51+
'from' => 2,
52+
'to' => 18,
5053
'step' => 1,
5154
'hide_min_max' => true,
5255
'hide_from_to' => true
5356
]
5457
]);
5558

5659
```
57-
- For change slider skin, you have to configure the assetManager array in your application configuration:
60+
- To change the slider skin, you can configure the assetManager array in your application configuration:
5861
```php
5962
'assetManager' => [
6063
'bundles' => [
@@ -71,4 +74,5 @@ echo IonSlider::widget([
7174

7275
Slider Options
7376
----------------
74-
You can find them on the [options page](http://ionden.com/a/plugins/ion.rangeSlider/en.html)
77+
You can customize the slider using `pluginOptions`, using one of the plugin [options](http://ionden.com/a/plugins/ion.rangeSlider/en.html).
78+
Note that the `type` option should be configured on its own, and is not part of the `pluginOptions` array.

0 commit comments

Comments
 (0)