# inputEx-library

### inputEx 0.5.1

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

## Class inputEx.UpperCaseField - extends inputEx.StringField

A field where the value is always uppercase

### Constructor

inputEx.UpperCaseField `( options )`

Parameters:
  `options <Object>` inputEx.Field options object

#### Properties inherited from inputEx.Field:

`options`

### Methods

#### onKeyPress

`void onKeyPress ( e )`
Call setvalue on input to update the field with upper case value

Parameters:
  `e <Event>` The original 'input' event

#### setValue

`void setValue ( val , [sendUpdatedEvt] )`
Set the value and call toUpperCase

Parameters:
  `val <String>` The string
  `[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`

#### Methods inherited from inputEx.StringField:

`disable, enable, focus, getStateString, getValue, initEvents, isDisabled, onFocus, renderComponent, setClassFromState, setFieldName, setOptions, setValue, validate`

#### Events inherited from inputEx.Field:

`updatedEvt,`

Copyright © 2010 Eric Abouaf All rights reserved.