Upgrade to ExtJS 4.0.1 - Released 05/18/2011
[extjs.git] / docs / source / validations.html
index 4237f81..f12d2f1 100644 (file)
@@ -1,4 +1,21 @@
-<!DOCTYPE html><html><head><title>Sencha Documentation Project</title><link rel="stylesheet" href="../reset.css" type="text/css"><link rel="stylesheet" href="../prettify.css" type="text/css"><link rel="stylesheet" href="../prettify_sa.css" type="text/css"><script type="text/javascript" src="../prettify.js"></script></head><body onload="prettyPrint()"><pre class="prettyprint"><pre><span id='Ext-data.validations'>/**
+<!DOCTYPE html>
+<html>
+<head>
+  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+  <title>The source code</title>
+  <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
+  <script type="text/javascript" src="../prettify/prettify.js"></script>
+  <style type="text/css">
+    .highlight { display: block; background-color: #ddd; }
+  </style>
+  <script type="text/javascript">
+    function highlight() {
+      document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
+    }
+  </script>
+</head>
+<body onload="prettyPrint(); highlight();">
+  <pre class="prettyprint lang-js"><span id='Ext-data-validations'>/**
 </span> * @author Ed Spencer
  * @class Ext.data.validations
  * @extends Object
 Ext.define('Ext.data.validations', {
     singleton: true,
     
-<span id='Ext-data.validations-property-presenceMessage'>    /**
+<span id='Ext-data-validations-property-presenceMessage'>    /**
 </span>     * The default error message used when a presence validation fails
      * @property presenceMessage
      * @type String
      */
     presenceMessage: 'must be present',
     
-<span id='Ext-data.validations-property-lengthMessage'>    /**
+<span id='Ext-data-validations-property-lengthMessage'>    /**
 </span>     * The default error message used when a length validation fails
      * @property lengthMessage
      * @type String
      */
     lengthMessage: 'is the wrong length',
     
-<span id='Ext-data.validations-property-formatMessage'>    /**
+<span id='Ext-data-validations-property-formatMessage'>    /**
 </span>     * The default error message used when a format validation fails
      * @property formatMessage
      * @type Boolean
      */
     formatMessage: 'is the wrong format',
     
-<span id='Ext-data.validations-property-inclusionMessage'>    /**
+<span id='Ext-data-validations-property-inclusionMessage'>    /**
 </span>     * The default error message used when an inclusion validation fails
      * @property inclusionMessage
      * @type String
      */
     inclusionMessage: 'is not included in the list of acceptable values',
     
-<span id='Ext-data.validations-property-exclusionMessage'>    /**
+<span id='Ext-data-validations-property-exclusionMessage'>    /**
 </span>     * The default error message used when an exclusion validation fails
      * @property exclusionMessage
      * @type String
      */
     exclusionMessage: 'is not an acceptable value',
     
-<span id='Ext-data.validations-method-presence'>    /**
+<span id='Ext-data-validations-method-presence'>    /**
 </span>     * Validates that the given value is present
      * @param {Object} config Optional config object
      * @param {Mixed} value The value to validate
@@ -59,7 +76,7 @@ Ext.define('Ext.data.validations', {
         return !!value;
     },
     
-<span id='Ext-data.validations-method-length'>    /**
+<span id='Ext-data-validations-method-length'>    /**
 </span>     * Returns true if the given value is between the configured min and max values
      * @param {Object} config Optional config object
      * @param {String} value The value to validate
@@ -81,7 +98,7 @@ Ext.define('Ext.data.validations', {
         }
     },
     
-<span id='Ext-data.validations-method-format'>    /**
+<span id='Ext-data-validations-method-format'>    /**
 </span>     * Returns true if the given value passes validation against the configured {@link #matcher} regex
      * @param {Object} config Optional config object
      * @param {String} value The value to validate
@@ -91,7 +108,7 @@ Ext.define('Ext.data.validations', {
         return !!(config.matcher &amp;&amp; config.matcher.test(value));
     },
     
-<span id='Ext-data.validations-method-inclusion'>    /**
+<span id='Ext-data-validations-method-inclusion'>    /**
 </span>     * Validates that the given value is present in the configured {@link #list}
      * @param {String} value The value to validate
      * @return {Boolean} True if the value is present in the list
@@ -100,7 +117,7 @@ Ext.define('Ext.data.validations', {
         return config.list &amp;&amp; Ext.Array.indexOf(config.list,value) != -1;
     },
     
-<span id='Ext-data.validations-method-exclusion'>    /**
+<span id='Ext-data-validations-method-exclusion'>    /**
 </span>     * Validates that the given value is present in the configured {@link #list}
      * @param {Object} config Optional config object
      * @param {String} value The value to validate
@@ -109,4 +126,6 @@ Ext.define('Ext.data.validations', {
     exclusion: function(config, value) {
         return config.list &amp;&amp; Ext.Array.indexOf(config.list,value) == -1;
     }
-});</pre></pre></body></html>
\ No newline at end of file
+});</pre>
+</body>
+</html>