4 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
5 <title>The source code</title>
6 <link href="../prettify/prettify.css" type="text/css" rel="stylesheet" />
7 <script type="text/javascript" src="../prettify/prettify.js"></script>
8 <style type="text/css">
9 .highlight { display: block; background-color: #ddd; }
11 <script type="text/javascript">
12 function highlight() {
13 document.getElementById(location.hash.replace(/#/, "")).className = "highlight";
17 <body onload="prettyPrint(); highlight();">
18 <pre class="prettyprint lang-js"><span id='Ext-grid-property-Property-method-constructor'><span id='Ext-grid-property-Property'>/**
19 </span></span> * @class Ext.grid.property.Property
20 * A specific {@link Ext.data.Model} type that represents a name/value pair and is made to work with the
21 * {@link Ext.grid.property.Grid}. Typically, Properties do not need to be created directly as they can be
22 * created implicitly by simply using the appropriate data configs either via the {@link Ext.grid.property.Grid#source}
23 * config property or by calling {@link Ext.grid.property.Grid#setSource}. However, if the need arises, these records
24 * can also be created explicitly as shown below. Example usage:
25 * <pre><code>
26 var rec = new Ext.grid.property.Property({
28 value: Ext.Date.parse('17/06/1962', 'd/m/Y')
30 // Add record to an already populated grid
31 grid.store.addSorted(rec);
32 </code></pre>
34 * @param {Object} config A data object in the format:<pre><code>
38 }</code></pre>
39 * The specified value's type
40 * will be read automatically by the grid to determine the type of editor to use when displaying it.
42 Ext.define('Ext.grid.property.Property', {
43 extend: 'Ext.data.Model',
45 alternateClassName: 'Ext.PropGridProperty',