kartik-v / yii2-widgets

Collection of useful widgets for Yii Framework 2.0
http://demos.krajee.com/widgets
Other
558 stars 175 forks source link

New Color input is not working in dynamic form. #298

Closed by12 closed 7 years ago

by12 commented 8 years ago

HI, First off all thanks for your great contribution. I am using the danymic form " https://github.com/wbraganca/yii2-dynamicform " to save color attribute value by using kartik color input widget. " https://github.com/kartik-v/yii2-widget-colorinput ". problem is when i add new input filed color select not loaded only loading circle show there.
my code is: <?= $form->field($modelItem, "[{$i}]string_title")->widget(ColorInput::classname(), [ options' => ['placeholder' => 'Select color ...'], ]); ?>

out put is: color

thanks in advance.

PriyaD08 commented 8 years ago

Even I am facing this issue. Kindly update.

by12 commented 7 years ago

Hi, sorry for late reply. I think the problem is not with the dynamic form. Actual dynamic form not able to handle the colorinput master branch. they are not compatible to each other. I just used the color input 1.0.0 version and solve the problem for me. with new version of ColorInput widget you need to update the dynamic form script.