The color picker widget
JavaScript PHP
Switch branches/tags
Nothing to show
Latest commit 8223a93 Apr 1, 2013 @tonybolzan tonybolzan Update README.md
Permalink
Failed to load latest commit information.
assets First commit Feb 22, 2013
vendors First commit Feb 22, 2013
.gitignore First commit Feb 22, 2013
ColorPicker.php First commit Feb 22, 2013
LICENSE.md First commit Feb 22, 2013
README.md Update README.md Apr 1, 2013

README.md

ColorPicker for Yii

The color picker widget is implemented based this jQuery plugin: https://github.com/laktek/really-simple-color-picker

Demo: http://www.laktek.com/2008/10/27/really-simple-color-picker-in-jquery

This widget is more useful as a textfield (the default mode)

Example:

    ...
        $this->widget('ext.colorpicker.ColorPicker', array(
            'model' => $model,
            'attribute' => 'color',
            'options' => array( // Optional
                'pickerDefault' => "ccc", // Configuration Object for JS
            ),
        ));
    ...
        $this->widget('ext.colorpicker.ColorPicker', array(
            'name' => 'color',
        ));
    ...