Skip to content

Commit 33e38a7

Browse files
author
Igor Chepurnoy
committed
Update README.md
1 parent beef5b3 commit 33e38a7

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,20 @@ echo $form->field($model, "option")->widget(IonSlider::className(), [
4040
],
4141
]);
4242
```
43-
43+
2) Usage without ActiveForm and model
44+
```php
45+
echo IonSlider::widget([
46+
'name' => "[$key-preview]skillsYearExperience",
47+
'pluginOptions' => [
48+
'min' => 0,
49+
'max' => 20,
50+
'step' => 1,
51+
'hide_min_max' => true,
52+
'hide_from_to' => true
53+
]
54+
]);
55+
56+
```
4457
Slider Options
4558
----------------
4659
You can find them on the [options page](http://ionden.com/a/plugins/ion.rangeSlider/en.html)

0 commit comments

Comments
 (0)