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.
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
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:
[html] <p id="colorpickerHolder"> </p> <script> $('#colorpickerHolder').ColorPicker({flat: true}); </script>
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.