# inputEx-library

### inputEx 0.5.1

inputEx-library > inputEx > inputEx.ColorPickerField
Search:
Filters Show Private Show Protected Show Deprecated

## Class inputEx.ColorPickerField - extends inputEx.Field

Create a Color picker input field

### Constructor

inputEx.ColorPickerField `( options )`

Parameters:
  `options <Object>` Added options for ColorPickerField :
  - showcontrols: show the input values RGB,HSV,RGB hex

#### Properties inherited from inputEx.Field:

`options`

### Methods

#### getValue

`String getValue ( )`
Return the color value

Returns: `String`
  Color value

#### renderComponent

`void renderComponent ( )`
Render the color button and the colorpicker popup

#### setOptions

`void setOptions ( options )`
Adds the 'inputEx-ColorPickerField' default className

Parameters:
  `options <Object>` Options object as passed to the constructor

#### setValue

`void setValue ( value , [sendUpdatedEvt] )`
Set the value

Parameters:
  `value <String>` Color to set
  `[sendUpdatedEvt] <boolean>` (optional) Wether this setValue should fire the updatedEvt or not (default is true, pass false to NOT send the event)

#### Methods inherited from inputEx.Field:

`clear, close, destroy, disable, displayMessage, enable, fireUpdatedEvt, focus, getEl, getParentField, getState, getStateString, getValue, hide, initEvents, isDisabled, isEmpty, onBlur, onChange, onFocus, render, renderComponent, setClassFromState, setFieldName, setOptions, setParentField, setValue, show, validate`

#### Events inherited from inputEx.Field:

`updatedEvt,`

Copyright © 2010 Eric Abouaf All rights reserved.