This widget is based on jQuery plugin by Stefan Petre (http://www.eyecon.ro/colorpicker/)
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist dpodium/yii2-colorpicker "*"
or add
"dpodium/yii2-colorpicker": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
<?= \dpodium\colorpicker\ColorPickerWidget::widget(['id' => 'color-picker', 'name' => 'color-picker']); ?>```
Comments