Skip to content
Nicholas K. Dionysopoulos edited this page Jul 20, 2015 · 1 revision

CacheHandler Field

This field allows you to choose an HTML hex color code interactively. It is rendered using an HTML5 color picker field or, if HTML5 is not supported, a jQuery plugin with the equivalent functionality.

For the edit form rendering of this field please consult JFormFieldColor. At the time of this writing you can set the following attributes:

  • position Position of the color selection panel: left, top or bottom
  • onchange onChange Javascript event handler
  • required Is this field required?
  • disabled Is this field disabled?
  • autofocus Should this field be automatically focused?
  • value Hex color definition without the leading #
  • control Type of control. Use simple for a simple drop-down list of predefined colors. Other possible values are hue (default), saturation, brightness and wheel.
  • readonly Set to 1 to make the control read only
  • hint A translation string key with the placeholder (hint) displayed in the field if no value is already set.
  • autocomplete Set to 1 to let the browser do auto-completion of the field (default) or 0 to tell the browser to prevent auto-completion. Not all browsers will respect this setting!

In read and browse views this field renders as a 20x20px square filled with the color in the value attribute. Keep in mind that the color code must be given as an HTML hex color definition without the leading # sign. For example, use FFFFFF for white, but NOT #FFFFFF or white.

Clone this wiki locally