Yii 1.1: colorpicker2

Color Picker - jQuery plugin
5 followers

A simple component to select color in the same way you select color in Adobe Photoshop

Resources

Documentation

Requirements

  • Yii 1.0 or above

Installation

  • Extract the release file under protected/extensions

Usage

See the following code example:

$this->widget('application.extensions.colorpicker.JColorPicker', array(
    'model' => $model,
    'attribute' => 'base_style',
));

Change Log

January 8, 2010

  • Initial release.

Total 2 comments

#13372 report it
Hasan Tokatlı at 2013/05/25 10:14am
re: trying to set the flat option doesnt work

@Junior - df9 This widget is not suitable for flat mode. Flat mode works with custom tag. E.g. "p" "div"

Official plugin implementation is:

<p id="colorpickerHolder">
</p>
<script>
$('#colorpickerHolder').ColorPicker({flat: true});
</script>
#41 report it
Junior - df9 at 2010/10/06 07:02am
trying to set the flat option doesnt work

hey, thanks for the extension, but the following code is not working:

<?php $this->widget('application.extensions.colorpicker.JColorPicker', array( 'model' => $model, 'attribute' => 'color', 'htmlOptions' => array(), 'options'=>array( 'flat'=>true ) )); ?>

i'm trying to set up the flat option...

am i doing something wrong: FF 3.6.10 WinXP SP3

tks

Leave a comment

Please to leave your comment.

Create extension