打印版式

Class Ext.form.VTypes

Package:Ext.form
Class:VTypes
Extends:Object
Defined In:VTypes.js
Overrideable validation definitions. The validations provided are basic and intended to be easily customizable and extended.

This class is a singleton and cannot be created directly.

属性   -  方法   -  事件

公共属性

属性 定义对象
  alphaMask : RegExp VTypes
The keystroke filter mask to be applied on alpha input
  alphaText : String VTypes
The error text to display when the alpha validation function returns false
  alphanumMask : RegExp VTypes
The keystroke filter mask to be applied on alphanumeric input
  alphanumText : String VTypes
The error text to display when the alphanumeric validation function returns false
  emailMask : RegExp VTypes
The keystroke filter mask to be applied on email input
  emailText : String VTypes
The error text to display when the email validation function returns false
  urlText : String VTypes
The error text to display when the url validation function returns false

公共方法

方法 定义对象
  alpha(String value) : void VTypes
The function used to validate alpha values
  alphanum(String value) : void VTypes
The function used to validate alphanumeric values
  email(String value) : void VTypes
The function used to validate email addresses
  url(String value) : void VTypes
The function used to validate urls

公共事件

此类没有公共事件。

属性详情

alphaMask

public RegExp alphaMask
The keystroke filter mask to be applied on alpha input
This property is defined by VTypes.

alphaText

public String alphaText
The error text to display when the alpha validation function returns false
This property is defined by VTypes.

alphanumMask

public RegExp alphanumMask
The keystroke filter mask to be applied on alphanumeric input
This property is defined by VTypes.

alphanumText

public String alphanumText
The error text to display when the alphanumeric validation function returns false
This property is defined by VTypes.

emailMask

public RegExp emailMask
The keystroke filter mask to be applied on email input
This property is defined by VTypes.

emailText

public String emailText
The error text to display when the email validation function returns false
This property is defined by VTypes.

urlText

public String urlText
The error text to display when the url validation function returns false
This property is defined by VTypes.

方法详情

alpha

public function alpha(String value)
The function used to validate alpha values
参数:
  • value : String
    The value
返回:
  • void
This method is defined by VTypes.

alphanum

public function alphanum(String value)
The function used to validate alphanumeric values
参数:
  • value : String
    The value
返回:
  • void
This method is defined by VTypes.

email

public function email(String value)
The function used to validate email addresses
参数:
  • value : String
    The email address
返回:
  • void
This method is defined by VTypes.

url

public function url(String value)
The function used to validate urls
参数:
  • value : String
    The url
返回:
  • void
This method is defined by VTypes.

Ext - Copyright © 2006-2007 Ext JS, LLC
All rights reserved.