yii2-dynamicform icon indicating copy to clipboard operation
yii2-dynamicform copied to clipboard

kartik touchspin - solved

Open fpolito opened this issue 6 years ago • 1 comments

in the file yii2-dynamic-form.js the line 422 $(this).TouchSpin('destroy'); doesn't work !! sholud be replaced with this line $(this).TouchSpin().trigger('touchspin.destroy');

fpolito avatar Apr 06 '19 11:04 fpolito

I have a problem with my touchSpin pluginOptions. Important for me are 'step' => 0.01 and 'decimals' => 2. The first TouchSpin works but all the next automatically work with 'step' => 1 and 'decimals' => 0. How can I solve this problem?

= $form->field($modelFlugzeit, "[{$i}]motor")->widget(TouchSpin::classname(), [ 'options' => ['placeholder'=>'Bsp.: 123.45'], 'pluginOptions' => [ 'max' => 1000, 'step' => 0.01, 'decimals' => 2, 'boostat' => 5, 'maxboostedstep' => 10, 'buttonup_txt' => '', 'buttondown_txt' => '' ] ]); ?>

MilaSuperstar84 avatar Jan 01 '22 14:01 MilaSuperstar84