# inputEx-library

### inputEx 0.5.1

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

## Class inputEx.UrlField - extends inputEx.StringField

Adds an url regexp, and display the favicon at this url

### Constructor

inputEx.UrlField `( options )`

Parameters:
  `options <Object>` inputEx.Field options object
  - favicon: boolean whether the domain favicon.ico should be displayed or not (default is true, except for https)

#### Properties inherited from inputEx.Field:

`options`

### Methods

#### displayFavicon

`void displayFavicon ( )`
Display the favicon if the icon was found (use of the naturalWidth property)

#### render

`void render ( )`
Adds a img tag before the field to display the favicon

#### setOptions

`void setOptions ( options )`
Adds the invalid Url message

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.