Properties Methods Events Direct Link

Class Ext.form.VTypes

Package:Ext.form
Defined In:VTypes.js
Class:VTypes
Extends:Object
* This is a singleton object which contains a set of commonly used field validation functions. The validations provided are basic and intended to be easily customizable and extended. To add your own custom VType:
Ext.apply(Ext.form.VTypes, {
    IPAddress:  function(v) {
        return /^\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}$/.test(v);
    },
    IPAddressText: 'Must be a numeric IP address'
});


This class is a singleton and cannot be created directly.

Public Properties

Property Defined By
  alphaMask : RegExp
The keystroke filter mask to be applied on alpha input
VTypes
  alphaText : String
The error text to display when the alpha validation function returns false
VTypes
  alphanumMask : RegExp
The keystroke filter mask to be applied on alphanumeric input
VTypes
  alphanumText : String
The error text to display when the alphanumeric validation function returns false
VTypes
  emailText : String
The error text to display when the email validation function returns false
VTypes
  urlText : String
The error text to display when the url validation function returns false
VTypes

Public Methods

Method Defined By

Public Events

This class has no public events.