Procedural File: class.atkcolorpickerattribute.inc
Source Location: /attributes/class.atkcolorpickerattribute.inc
Page Details
This file is part of the Achievo ATK distribution.
Detailed copyright and licensing information can be found in the doc/COPYRIGHT and doc/LICENSE files which should be included in the distribution.
| Version: | $Revision: 6334 $ $Id: class.atkcolorpickerattribute.inc 6355 2009-04-21 15:20:09Z lineke $ |
| Copyright: | (c)2000-2004 Ibuildings.nl BV |
| Todo: | The rgb color support in check_color() only works if another argument 'rgb' is passed, which never happens because only 1 argument is passed to that method from the atkColorPickerAttribute. |
| Todo: | The colorpicker supports the first # to be optionally entered, but the edit of the attribute does not show the correct color. |
| Todo: | The colorpicker appears to support values such as 'red' to be entered in the popup (the edit of the attribute shows the correct color) although the value never passes the validation. |
| License: | ATK Open Source License |
Constants
CP_COLORMODE_DEFAULT [line 33]
API Tags:
| Internal: | includes and defines * |
CP_COLORMODE_HEX6 [line 34]
Functions
colorMatrix [line 62]
void colorMatrix(
$colHeight, $colWidth, $field, [ $extern = 0], $userColors
)
|
|
Returns a string with the entire colorPicker matrix
Parameters:
|
|
$colHeight: |
|
|
|
$colWidth: |
|
|
|
$field: |
|
|
|
$extern: |
|
|
|
$userColors: |
|
API Tags:
drawTD [line 40]
void drawTD(
$field, $color, $colHeight, $colWidth, [ $extern = 0]
)
|
|
Draws one colored <td>gif</td> box with javascript parameters in the desired height,width and color
Parameters:
|
|
$field: |
|
|
|
$color: |
|
|
|
$colHeight: |
|
|
|
$colWidth: |
|
|
|
$extern: |
|
API Tags: