-
Notifications
You must be signed in to change notification settings - Fork 0
Color 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
orbottom
- 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 arehue
(default),saturation
,brightness
andwheel
. - 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
.
FOF (Framework on Framework) and its documentation are Copyright © 2010-2020 Nicholas K. Dionysopoulos / Akeeba Ltd.
FOF is Open Source Software, distributed under the GNU General Public License, version 2 of the license, or (at your option) any later version.
The FOF Wiki content is provided under the GNU Free Documentation License, version 1.3 of the license, or (at your option) any later version.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.3 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts. A copy of the license can be found on the GNU site.