yii-colorpicker Simple color picker

  1. Requirements
  2. Usage
  3. Resources

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

3 0
3 followers
1 038 downloads
Yii Version: 1.1
License: MIT
Category: User Interface
Developed by: Tonin De Rosso Bolzan
Created on: Apr 1, 2013
Last updated: 11 years ago

Downloads

show all

Related Extensions