Yii 1.1: yii-colorpicker

Simple color picker
4 followers

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)

Requirements

Yii 1.1 or above

Usage

...
        $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',
        ));
    ...

Resources

Total 1 comment

#14986 report it
Rajith R at 2013/09/26 06:16am
@Tonin De Rosso Bolzan

Thanks for the good ext.

Leave a comment

Please to leave your comment.

Create extension