JFormFieldColor

Extends \JFormField

Color Form Field class for the Joomla Platform.

This implementation is designed to be compatible with HTML5's <input type="color">

link

http://www.w3.org/TR/html-markup/input.color.html

since

1.7.3

package

Joomla.Platform

Methods

__get

Method to get certain otherwise inaccessible properties from the form field object.

__get(string $name) : mixed
since

3.2

Arguments

$name

stringThe property name for which to get the value.

Response

mixedThe property value or null.

__set

Method to set certain otherwise inaccessible properties of the form field object.

__set(string $name, mixed $value) : void
since

3.2

Arguments

$name

stringThe property name for which to set the value.

$value

mixedThe value of the property.

getAdvancedModeLayoutData

Method to get the data for the advanced mode to be passed to the layout for rendering.

getAdvancedModeLayoutData(object $lang) : array
since

3.5

Arguments

$lang

objectThe language object

Response

array

getInput

Method to get the field input markup.

getInput() : string
since

1.7.3

Response

stringThe field input markup.

getLayoutData

Method to get the data to be passed to the layout for rendering.

getLayoutData() : array
since

3.5

Response

array

getSimpleModeLayoutData

Method to get the data for the simple mode to be passed to the layout for rendering.

getSimpleModeLayoutData() : array
since

3.5

Response

array

setup

Method to attach a JForm object to the field.

setup(\SimpleXMLElement $element, mixed $value, string $group = null) : boolean
see \JFormField::setup()
since

3.2

Arguments

$element

\SimpleXMLElementThe SimpleXMLElement object representing the <field> tag for the form field object.

$value

mixedThe form field value to validate.

$group

stringThe field name group control value. This acts as an array container for the field. For example if the field has name="foo" and the group value is set to "bar" then the full field name would end up being "bar[foo]".

Response

booleanTrue on success.

Properties

type

The form field type.

since

1.7.3

Type(s)

string

control

The control.

since

3.2

Type(s)

mixed

format

The format.

since

3.6.0

Type(s)

string

keywords

The keywords (transparent,initial,inherit).

since

3.6.0

Type(s)

string

position

The position.

since

3.2

Type(s)

mixed

colors

The colors.

since

3.2

Type(s)

mixed

split

The split.

since

3.2

Type(s)

integer

layout

Name of the layout being used to render the field

since

3.5

Type(s)

string