# inputEx-library

### inputEx 0.5.1

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

## Class inputEx.StringAvailability - extends inputEx.StringField

String field that sends an Ajax request to check if it is available

### Constructor

inputEx.StringAvailability `( options )`

Parameters:
  `options <Object>`

#### Properties inherited from inputEx.Field:

`options`

### Methods

#### getAvailability

`void getAvailability ( )`
Perform the Ajax request

#### onAvailable

`void onAvailable ( )`
What to do when the string is available

#### onUnavailable

`void onUnavailable ( )`
What to do when the string is NOT available

#### setOptions

`void setOptions ( options )`

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

#### 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.