Skip to main content


deprecated class %ZEN.Component.colorPicker extends %ZEN.Component.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.

Property Inventory

Method Inventory


parameter SYSMODULE;
Do not include in "form" module.


property cellWidth as %ZEN.Datatype.integer [ InitialExpression = 20 ];
Width of color cells.
Property methods: cellWidthDisplayToLogical(), cellWidthGet(), cellWidthIsValid(), cellWidthLogicalToDisplay(), cellWidthLogicalToOdbc(), cellWidthNormalize(), cellWidthSet()
property cellsPerRow as %ZEN.Datatype.integer [ InitialExpression = 16 ];
Number of color cells in one row.
Property methods: cellsPerRowDisplayToLogical(), cellsPerRowGet(), cellsPerRowIsValid(), cellsPerRowLogicalToDisplay(), cellsPerRowLogicalToOdbc(), cellsPerRowNormalize(), cellsPerRowSet()
property colorList as %ZEN.Datatype.csv;
Comma-delimited list of CSS color values displayed within the control.
Property methods: colorListDisplayToLogical(), colorListGet(), colorListIsValid(), colorListLogicalToDisplay(), colorListLogicalToOdbc(), colorListNormalize(), colorListSet()
property palette as %ZEN.Datatype.string (VALUELIST = ",basic,expanded") [ InitialExpression = "basic" ];
Optional. Choose a more extensive set of colors to display.
Property methods: paletteDisplayToLogical(), paletteGet(), paletteIsValid(), paletteLogicalToDisplay(), paletteLogicalToOdbc(), paletteNormalize(), paletteSet()


method %DrawHTML()
Inherited description: 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.
clientmethod selectColor(color, notify) [ Language = javascript ]
User has selected a color. If notify is true invoke onchange notification.
clientmethod setProperty(property, value, value2) [ Language = javascript ]
Set the value of a named property.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab