Open BenasPaulikas opened 9 years ago
Sims like, due to changes in yii\widgets\InputWidget
, $this->value
is set to $this->options['value']
or to input value.
echo $form->field($model, 'hours')->widget(Slider::classname(), [
'options' => [
'value' => '5,7',
],
'pluginOptions' => [
'min' => 0,
'max' => 24,
'step' => 1,
'range' => true
]
]);
I selected current max value as 7, but it's 24..