Answer the question
In order to leave comments, you need to log in
Yii2 Get value of SliderInput?
Hello.
To display the price range I use SliderInput.
Installed and displayed in the view without problems. But here it would be desirable, that in 2 input values of each slider were shown. As I understand from the documentation, you need to use the Protected Properties $clientEventMap slide. I just can't figure out how to implement it.
Let's say I have input1 and input2.
Here is the range:
<?php $form = ActiveForm::begin(['id' => 'contact-form']); ?>
<?= $form->field($model, 'name')->widget(\yii\jui\SliderInput::classname(), [
'clientOptions' => [
'min' => 1,
'max' => 10,
'values' => [0,100],
],
]) ?>
<?php ActiveForm::end(); ?>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question