EColorPicker is an input widget with a color picker palette which is jQuery based. You can consider this Yii widget as a wrapper for that jQuery plugin.
Current version: 1.6
protected/extensionsSee the following code example:
$this->widget('application.extensions.colorpicker.EColorPicker', array( 'name'=>'cp', 'mode'=>'textfield', 'fade' => false, 'slide' => false, 'curtain' => true, ) );
There are 3 modes for the plugin: flat, selector and textfield. The most useful mode is textinput, since it places the color in a text input field of a form, which can be read using $_POST.
In textfield mode you can use 3 kind of effects to display the palette in a fancier way: fade, slide and curtain. Just set the desire effect to true in the widget's parameters. You can also adjust the delay of the effect by using the timeFade, timeSlide and timeCurtain parameters.
You can pass a starting color value by setting the value parameter to an hexadecimal RGB value.
Total 3 comments
the ColorPicker plugin has a new version release on 23/05/2009 you can find here
download the new version, and then replace the "colorpicker.js"
这个功能不错。
Fast and easy integration!
Excelent extension!!
Leave a comment
Please login to leave your comment.