inputEx Documentation Back to homepage

inputEx Documentation > inputEx.StringField 1.0.0

Class inputEx.StringField - extends inputEx.Field

Known Subclasses:
inputEx.AutoComplete inputEx.DateField inputEx.EmailField inputEx.IPv4Field inputEx.PasswordField inputEx.UrlField
Basic string field (equivalent to the input type "text")

Constructor

inputEx.StringField ( options )
Parameters:
options <Object>  - inputEx.Field options object options:
  • regexp: regular expression used to validate (otherwise it always validate)
  • size: size attribute of the input
  • numbersOnly: boolean, accept only numbers if true

Methods

disable

disable()
Disable the field

enable

enable()
Enable the field

getEl

getEl()
undocumented

getValue

getValue()
undocumented

initEvents

initEvents()
undocumented

onInput

onInput(e)
onInput is called 50ms after a "keypress" event
Parameters:
    e

renderComponent

renderComponent()
undocumented

setOptions

setOptions()
Add the option "size"

setValue

setValue(value)
Function to set the value
Parameters:
    value <String>  - The new value

validate

validate()
Uses the optional regexp to validate the field value




Copyright (c) 2008 Eric Abouaf. All rights reserved.
Generated by JsDoc Toolkit 1.4.1 on Wed, 07 May 2008 10:26:30 GMT.