\ColorField
ColorField is a and advanced color picker.
Implements JQuery Minicolors, a preview and direct Hex, RGB and Alpha input.
- Author: Thierry Francois @colymba
Synopsis
class ColorField
extends FormField
{
- // members
- protected integer $maxLength = 9;
- protected array $jsConfig = ;
- protected array $jsConfigOverrides = ;
- // methods
- public void __construct()
- public array getAttributes()
- public array getJSConfig()
- public void setJSConfig()
- public string Field()
Hierarchy
Extends
- FormField
Members
protected
- $jsConfig
—
array
JQuery Minicolors plugin config https://github.com/claviska/jquery-minicolors - $jsConfigOverrides
—
array
JQuery Minicolors plugin config overrides - $maxLength
—
int
Field's max length RRGGBBAAA
Methods
public
- __construct() — Return a new ColorField
- Field() — Return's the field for the template
- getAttributes() — Returns the field's HTML attributes
- getJSConfig() — Return the JQuery Minicolors plugin config
- setJSConfig() — Sets a JQuery Minicolors plugin config option