2 |
aperonnet |
1 |
<div class="body-wrap">
|
|
|
2 |
<div class="top-tools">
|
|
|
3 |
<a class="inner-link" href="#Ext.grid.PropertyRecord-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
|
|
|
4 |
<a class="inner-link" href="#Ext.grid.PropertyRecord-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
|
|
|
5 |
<a class="inner-link" href="#Ext.grid.PropertyRecord-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
|
|
|
6 |
<a class="bookmark" href="../docs/?class=Ext.grid.PropertyRecord"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
|
|
|
7 |
</div>
|
|
|
8 |
<h1>Class Ext.grid.PropertyRecord</h1>
|
|
|
9 |
<table cellspacing="0">
|
|
|
10 |
<tr><td class="label">Package:</td><td class="hd-info">Ext.grid</td></tr>
|
|
|
11 |
<tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/widgets/grid/PropertyGrid.js" target="_blank">PropertyGrid.js</a></td></tr>
|
|
|
12 |
<tr><td class="label">Class:</td><td class="hd-info">PropertyRecord</td></tr>
|
|
|
13 |
<tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>
|
|
|
14 |
</table>
|
|
|
15 |
<div class="description">
|
|
|
16 |
A specific <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">Ext.data.Record</a> type that represents a name/value pair and is made to work with the
|
|
|
17 |
<a ext:cls="Ext.grid.PropertyGrid" href="output/Ext.grid.PropertyGrid.html">Ext.grid.PropertyGrid</a>. Typically, PropertyRecords do not need to be created directly as they can be
|
|
|
18 |
created implicitly by simply using the appropriate data configs either via the <a ext:cls="Ext.grid.PropertyGrid" ext:member="source" href="output/Ext.grid.PropertyGrid.html#source">Ext.grid.PropertyGrid.source</a>
|
|
|
19 |
config property or by calling <a ext:cls="Ext.grid.PropertyGrid" ext:member="setSource" href="output/Ext.grid.PropertyGrid.html#setSource">Ext.grid.PropertyGrid.setSource</a>. However, if the need arises, these records
|
|
|
20 |
can also be created explicitly as shwon below. Example usage:
|
|
|
21 |
<pre><code>var rec = <b>new</b> Ext.grid.PropertyRecord({
|
|
|
22 |
name: <em>'Birthday'</em>,
|
|
|
23 |
value: <b>new</b> Date(Date.parse(<em>'05/26/1972'</em>))
|
|
|
24 |
});
|
|
|
25 |
<i>// Add record to an already populated grid</i>
|
|
|
26 |
grid.store.addSorted(rec);</code></pre> </div>
|
|
|
27 |
|
|
|
28 |
<div class="hr"></div>
|
|
|
29 |
<a id="Ext.grid.PropertyRecord-props"></a>
|
|
|
30 |
<h2>Public Properties</h2>
|
|
|
31 |
<div class="no-members">This class has no public properties.</div> <a id="Ext.grid.PropertyRecord-methods"></a>
|
|
|
32 |
<h2>Public Methods</h2>
|
|
|
33 |
<table cellspacing="0" class="member-table">
|
|
|
34 |
<tr>
|
|
|
35 |
<th class="sig-header" colspan="2">Method</th>
|
|
|
36 |
<th class="msource-header">Defined By</th>
|
|
|
37 |
</tr>
|
|
|
38 |
<tr class="method-row expandable">
|
|
|
39 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
40 |
<td class="sig">
|
|
|
41 |
<a id="Ext.grid.PropertyRecord-PropertyRecord"></a>
|
|
|
42 |
<b>PropertyRecord</b>( <code>Object config</code> ) <div class="mdesc">
|
|
|
43 |
<div class="short"></div>
|
|
|
44 |
<div class="long">
|
|
|
45 |
<div class="mdetail-params">
|
|
|
46 |
<strong>Parameters:</strong>
|
|
|
47 |
<ul><li><code>config</code> : Object<div class="sub-desc">A data object in the format: {name: [name], value: [value]}. The specified value's type
|
|
|
48 |
will be read automatically by the grid to determine the type of editor to use when displaying it.</div></li> </ul>
|
|
|
49 |
<strong>Returns:</strong>
|
|
|
50 |
<ul>
|
|
|
51 |
<li><code></code></li>
|
|
|
52 |
</ul>
|
|
|
53 |
</div>
|
|
|
54 |
</div>
|
|
|
55 |
</div>
|
|
|
56 |
</td>
|
|
|
57 |
<td class="msource">PropertyRecord</td>
|
|
|
58 |
</tr>
|
|
|
59 |
</table>
|
|
|
60 |
<a id="Ext.grid.PropertyRecord-events"></a>
|
|
|
61 |
<h2>Public Events</h2>
|
|
|
62 |
<div class="no-members">This class has no public events.</div>
|
|
|
63 |
</div>
|