For Adobe ColdFusion application servers ColorPicker

ColorPicker provides a popup window to assist the user in picking an RGB color. This format is an implementation of the color picker written by Brent V. Ertz (brent80301@yahoo.com). This color picker allows for multiple customisable swatches similar in appearance to those found in Adobe software.

The following special attributes are available for ColorPicker:

  • ButtonCaption
    Optional. The text to appear on the button. Defaults to Color Picker.
  • colorgrid
    Optional. The color grid to choose by default when the popup appears.
  • disabledgrids
    Optional. A comma-delimited list of the names of color grids to be unavailable. The built-in grids are "colorcubes", "continuous", "windows", "mac", and "grayscale".

Other non-TerraField attributes will be passed through to the underlying text tag (<input type="text">).

Examples

A ColorPicker field:

<cf_terrafield
  name="MyColorPickerField1"
  format="ColorPicker"
/>

A ColorPicker field set to grayscale only:

<cf_terrafield
  name="MyColorPickerField2"
  format="ColorPicker"
  caption="shade of gray"
  disabledgrids="colorcubes,continuous,windows,mac"
/>

No comments yet