This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRISOpens in a new window, see the InterSystems IRIS Migration Guide and Migrating to InterSystems IRIS, both available on the WRC Distributions pageOpens in a new window (login required).


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 (Including Private)

Method Inventory (Including Private)


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

Properties (Including Private)

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()

Methods (Including Private)

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 (Including Private)

Inherited Methods (Including Private)

FeedbackOpens in a new window