class %ZEN.Component.colorPicker
extends control
A simple color selection control.
This displays a set of cells of different colors, as
specified by the colorList property.
The value of the control is the most recently selected color.
parameter SYSMODULE;
Do not include in "form" module.
property cellWidth
as %ZEN.Datatype.integer [ InitialExpression = 20 ];
Width of color cells.
property cellsPerRow
as %ZEN.Datatype.integer [ InitialExpression = 16 ];
Number of color cells in one row.
property colorList
as %ZEN.Datatype.csv;
Comma-delimited list of CSS color values displayed within the control.
property palette
as %ZEN.Datatype.string(VALUELIST=",basic,expanded") [ InitialExpression = "basic" ];
Optional. Choose a more extensive set of colors to display.
method %DrawHTML()
Static HTML display method: draw the BODY of this component
as HTML.
Subclasses implement this in order to render the static HTML
contents of a component.
method selectColor(color, notify)
[ Language = javascript ]
User has selected a color. If notify
is true invoke onchange notification.
method setProperty(property, value, value2)
[ Language = javascript ]
Set the value of a named property.