<?php $form = ActiveForm::begin();?>
<?php echo $form->field($model, "price")->widget(\yii2mod\slider\IonSlider::className(), [
'pluginOptions' => [
'min' => 0,
'max' => 1,
'step' => 1,
'onChange' => new \yii\web\JsExpression('
function(data) {
console.log(data);
}
')
]
]);
?>
<?php ActiveForm::end(); ?>
Either 'name', or 'model', and 'attribute' properties must be specified