-<!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.Field'>/**
+<!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-Field'>/**
</span> * @author Ed Spencer
* @class Ext.data.Field
* @extends Object
}
},
-<span id='Ext-data.Field-cfg-name'> /**
+<span id='Ext-data-Field-cfg-name'> /**
</span> * @cfg {String} name
* The name by which the field is referenced within the Model. This is referenced by, for example,
* the <code>dataIndex</code> property in column definition objects passed to {@link Ext.grid.property.HeaderContainer}.
* definition may consist of just a String for the field name.</p>
*/
-<span id='Ext-data.Field-cfg-type'> /**
+<span id='Ext-data-Field-cfg-type'> /**
</span> * @cfg {Mixed} type
* (Optional) The data type for automatic conversion from received data to the <i>stored</i> value if <code>{@link Ext.data.Field#convert convert}</code>
* has not been specified. This may be specified as a string value. Possible values are
* {@link Ext.data.Types} class.</p>
*/
-<span id='Ext-data.Field-cfg-convert'> /**
+<span id='Ext-data-Field-cfg-convert'> /**
</span> * @cfg {Function} convert
* (Optional) A function which converts the value provided by the Reader into an object that will be stored
* in the Model. It is passed the following parameters:<div class="mdetail-params"><ul>
];
* </code></pre>
*/
-<span id='Ext-data.Field-cfg-dateFormat'> /**
+<span id='Ext-data-Field-cfg-dateFormat'> /**
</span> * @cfg {String} dateFormat
* <p>(Optional) Used when converting received data into a Date when the {@link #type} is specified as <code>"date"</code>.</p>
* <p>A format string for the {@link Ext.Date#parse Ext.Date.parse} function, or "timestamp" if the
*/
dateFormat: null,
-<span id='Ext-data.Field-cfg-useNull'> /**
+<span id='Ext-data-Field-cfg-useNull'> /**
</span> * @cfg {Boolean} useNull
* <p>(Optional) Use when converting received data into a Number type (either int or float). If the value cannot be parsed,
* null will be used if useNull is true, otherwise the value will be 0. Defaults to <tt>false</tt>
*/
useNull: false,
-<span id='Ext-data.Field-cfg-defaultValue'> /**
+<span id='Ext-data-Field-cfg-defaultValue'> /**
</span> * @cfg {Mixed} defaultValue
* (Optional) The default value used <b>when a Model is being created by a {@link Ext.data.reader.Reader Reader}</b>
* when the item referenced by the <code>{@link Ext.data.Field#mapping mapping}</code> does not exist in the data
* object (i.e. undefined). (defaults to "")
*/
defaultValue: "",
-<span id='Ext-data.Field-cfg-mapping'> /**
+<span id='Ext-data-Field-cfg-mapping'> /**
</span> * @cfg {String/Number} mapping
* <p>(Optional) A path expression for use by the {@link Ext.data.reader.Reader} implementation
* that is creating the {@link Ext.data.Model Model} to extract the Field value from the data object.
* return the desired data.</p>
*/
mapping: null,
-<span id='Ext-data.Field-cfg-sortType'> /**
+<span id='Ext-data-Field-cfg-sortType'> /**
</span> * @cfg {Function} sortType
* (Optional) A function which converts a Field's value to a comparable value in order to ensure
* correct sort ordering. Predefined functions are provided in {@link Ext.data.SortTypes}. A custom
* </code></pre>
*/
sortType : null,
-<span id='Ext-data.Field-cfg-sortDir'> /**
+<span id='Ext-data-Field-cfg-sortDir'> /**
</span> * @cfg {String} sortDir
* (Optional) Initial direction to sort (<code>"ASC"</code> or <code>"DESC"</code>). Defaults to
* <code>"ASC"</code>.
*/
sortDir : "ASC",
-<span id='Ext-data.Field-cfg-allowBlank'> /**
+<span id='Ext-data-Field-cfg-allowBlank'> /**
</span> * @cfg {Boolean} allowBlank
* @private
* (Optional) Used for validating a {@link Ext.data.Model model}, defaults to <code>true</code>.
*/
allowBlank : true,
-<span id='Ext-data.Field-cfg-persist'> /**
+<span id='Ext-data-Field-cfg-persist'> /**
</span> * @cfg {Boolean} persist
* False to exclude this field from the {@link Ext.data.Model#modified} fields in a model. This
* will also exclude the field from being written using a {@link Ext.data.writer.Writer}. This option
*/
persist: true
});
-</pre></pre></body></html>
\ No newline at end of file
+</pre>
+</body>
+</html>