Subversion Repositories eFlore/Applications.cel

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
2 aperonnet 1
        <div class="body-wrap">
2
        <div class="top-tools">
3
            <a class="inner-link" href="#Ext.grid.ColumnModel-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4
            <a class="inner-link" href="#Ext.grid.ColumnModel-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5
            <a class="inner-link" href="#Ext.grid.ColumnModel-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6
                            <a class="inner-link" href="#Ext.grid.ColumnModel-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7
                        <a class="bookmark" href="../docs/?class=Ext.grid.ColumnModel"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
8
        </div>
9
                <div class="inheritance res-block">
10
<pre class="res-block-inner"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a>
11
  <img src="resources/elbow-end.gif"/>ColumnModel</pre></div>
12
                <h1>Class Ext.grid.ColumnModel</h1>
13
        <table cellspacing="0">
14
            <tr><td class="label">Package:</td><td class="hd-info">Ext.grid</td></tr>
15
            <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/widgets/grid/ColumnModel.js" target="_blank">ColumnModel.js</a></td></tr>
16
            <tr><td class="label">Class:</td><td class="hd-info">ColumnModel</td></tr>
17
                        <tr><td class="label">Subclasses:</td><td class="hd-info"><a ext:cls="Ext.grid.PropertyColumnModel" href="output/Ext.grid.PropertyColumnModel.html">PropertyColumnModel</a></td></tr>
18
                                    <tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.util.Observable" ext:member="" href="output/Ext.util.Observable.html">Observable</a></td></tr>
19
                    </table>
20
        <div class="description">
21
            This is the default implementation of a ColumnModel used by the Grid. This class is initialized
22
with an Array of column config objects.
23
<br><br>
24
An individual column's config object defines the header string, the <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">Ext.data.Record</a>
25
field the column draws its data from, an otional rendering function to provide customized
26
data formatting, and the ability to apply a CSS class to all cells in a column through its
27
<a ext:cls="Ext.grid.ColumnModel" ext:member="id" href="output/Ext.grid.ColumnModel.html#id">id</a> config option.<br>
28
<br>Usage:<br>
29
 <pre><code>var colModel = <b>new</b> Ext.grid.ColumnModel([
30
	{header: <em>"Ticker"</em>, width: 60, sortable: true},
31
	{header: <em>"Company Name"</em>, width: 150, sortable: true},
32
	{header: <em>"Market Cap."</em>, width: 100, sortable: true},
33
	{header: <em>"$ Sales"</em>, width: 100, sortable: true, renderer: money},
34
	{header: <em>"Employees"</em>, width: 100, sortable: true, resizable: false}
35
 ]);</code></pre>
36
<p>
37
The config options listed for this class are options which may appear in each
38
individual column definition.        </div>
39
 
40
        <div class="hr"></div>
41
                <a id="Ext.grid.ColumnModel-configs"></a>
42
        <h2>Config Options</h2>
43
        <table cellspacing="0" class="member-table">
44
            <tr>
45
                <th class="sig-header" colspan="2">Config Options</th>
46
                <th class="msource-header">Defined By</th>
47
            </tr>
48
                <tr class="config-row">
49
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
50
        <td class="sig">
51
        <a id="Ext.grid.ColumnModel-align"></a>
52
            <b>align</b> : String            <div class="mdesc">
53
                            (optional) Set the CSS text-align property of the column. Defaults to undefined.                        </div>
54
        </td>
55
        <td class="msource">ColumnModel</td>
56
    </tr>
57
        <tr class="config-row alt">
58
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
59
        <td class="sig">
60
        <a id="Ext.grid.ColumnModel-css"></a>
61
            <b>css</b> : String            <div class="mdesc">
62
                            (optional) Set custom CSS for all table cells in the column (excluding headers). Defaults to undefined.                        </div>
63
        </td>
64
        <td class="msource">ColumnModel</td>
65
    </tr>
66
        <tr class="config-row expandable">
67
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
68
        <td class="sig">
69
        <a id="Ext.grid.ColumnModel-dataIndex"></a>
70
            <b>dataIndex</b> : String            <div class="mdesc">
71
                        <div class="short">(optional) The name of the field in the grid's Ext.data.Store's Ext.data.Record definition from which to draw the col...</div>
72
            <div class="long">
73
                (optional) The name of the field in the grid's <a ext:cls="Ext.data.Store" href="output/Ext.data.Store.html">Ext.data.Store</a>'s <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">Ext.data.Record</a> definition from which to draw the column's value. If not specified, the column's index is used as an index into the Record's data Array.            </div>
74
                        </div>
75
        </td>
76
        <td class="msource">ColumnModel</td>
77
    </tr>
78
        <tr class="config-row alt">
79
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
80
        <td class="sig">
81
        <a id="Ext.grid.ColumnModel-editor"></a>
82
            <b>editor</b> : Ext.form.Field            <div class="mdesc">
83
                            (optional) The <a ext:cls="Ext.form.Field" href="output/Ext.form.Field.html">Ext.form.Field</a> to use when editing values in this column if editing is supported by the grid.                        </div>
84
        </td>
85
        <td class="msource">ColumnModel</td>
86
    </tr>
87
        <tr class="config-row">
88
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
89
        <td class="sig">
90
        <a id="Ext.grid.ColumnModel-fixed"></a>
91
            <b>fixed</b> : Boolean            <div class="mdesc">
92
                            (optional) True if the column width cannot be changed. Defaults to false.                        </div>
93
        </td>
94
        <td class="msource">ColumnModel</td>
95
    </tr>
96
        <tr class="config-row alt">
97
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
98
        <td class="sig">
99
        <a id="Ext.grid.ColumnModel-header"></a>
100
            <b>header</b> : String            <div class="mdesc">
101
                            The header text to display in the Grid view.                        </div>
102
        </td>
103
        <td class="msource">ColumnModel</td>
104
    </tr>
105
        <tr class="config-row">
106
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
107
        <td class="sig">
108
        <a id="Ext.grid.ColumnModel-hidden"></a>
109
            <b>hidden</b> : Boolean            <div class="mdesc">
110
                            (optional) True to hide the column. Defaults to false.                        </div>
111
        </td>
112
        <td class="msource">ColumnModel</td>
113
    </tr>
114
        <tr class="config-row alt">
115
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
116
        <td class="sig">
117
        <a id="Ext.grid.ColumnModel-hideable"></a>
118
            <b>hideable</b> : Boolean            <div class="mdesc">
119
                            (optional) Specify as <tt>false</tt> to prevent the user from hiding this column. Defaults to true.                        </div>
120
        </td>
121
        <td class="msource">ColumnModel</td>
122
    </tr>
123
        <tr class="config-row expandable">
124
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
125
        <td class="sig">
126
        <a id="Ext.grid.ColumnModel-id"></a>
127
            <b>id</b> : String            <div class="mdesc">
128
                        <div class="short">(optional) Defaults to the column's initial ordinal position. A name which identifies this column. The id is used to ...</div>
129
            <div class="long">
130
                (optional) Defaults to the column's initial ordinal position. A name which identifies this column. The id is used to create a CSS class name which is applied to all table cells (including headers) in that column. The class name takes the form of <pre>x-grid3-td-<b>id</b></pre> <br><br> Header cells will also recieve this class name, but will also have the class <pr>x-grid3-hd</pre>, so to target header cells, use CSS selectors such as:<pre>.x-grid3-hd.x-grid3-td-<b>id</b></pre> The <a ext:cls="Ext.grid.Grid" ext:member="autoExpandColumn" href="output/Ext.grid.Grid.html#autoExpandColumn">Ext.grid.Grid.autoExpandColumn</a> grid config option references the column via this identifier.            </div>
131
                        </div>
132
        </td>
133
        <td class="msource">ColumnModel</td>
134
    </tr>
135
        <tr class="config-row inherited alt expandable">
136
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
137
        <td class="sig">
138
        <a id="Ext.grid.ColumnModel-listeners"></a>
139
            <b>listeners</b> : Object            <div class="mdesc">
140
                        <div class="short">A config object containing one or more event handlers to be added to this object during initialization. This should b...</div>
141
            <div class="long">
142
                A config object containing one or more event handlers to be added to this object during initialization. This should be a valid listeners config object as specified in the <a ext:cls="Ext.util.Observable" ext:member="addListener" href="output/Ext.util.Observable.html#addListener">addListener</a> example for attaching multiple handlers at once.            </div>
143
                        </div>
144
        </td>
145
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
146
    </tr>
147
        <tr class="config-row">
148
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
149
        <td class="sig">
150
        <a id="Ext.grid.ColumnModel-menuDisabled"></a>
151
            <b>menuDisabled</b> : Boolean            <div class="mdesc">
152
                            (optional) True to disable the column menu. Defaults to false.                        </div>
153
        </td>
154
        <td class="msource">ColumnModel</td>
155
    </tr>
156
        <tr class="config-row alt expandable">
157
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
158
        <td class="sig">
159
        <a id="Ext.grid.ColumnModel-renderer"></a>
160
            <b>renderer</b> : Function            <div class="mdesc">
161
                        <div class="short">(optional) A function used to generate HTML markup for a cell given the cell's data value. See setRenderer. If not sp...</div>
162
            <div class="long">
163
                (optional) A function used to generate HTML markup for a cell given the cell's data value. See <a ext:cls="Ext.grid.ColumnModel" ext:member="setRenderer" href="output/Ext.grid.ColumnModel.html#setRenderer">setRenderer</a>. If not specified, the default renderer uses the raw data value.            </div>
164
                        </div>
165
        </td>
166
        <td class="msource">ColumnModel</td>
167
    </tr>
168
        <tr class="config-row">
169
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
170
        <td class="sig">
171
        <a id="Ext.grid.ColumnModel-resizable"></a>
172
            <b>resizable</b> : Boolean            <div class="mdesc">
173
                            (optional) False to disable column resizing. Defaults to true.                        </div>
174
        </td>
175
        <td class="msource">ColumnModel</td>
176
    </tr>
177
        <tr class="config-row alt expandable">
178
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
179
        <td class="sig">
180
        <a id="Ext.grid.ColumnModel-sortable"></a>
181
            <b>sortable</b> : Boolean            <div class="mdesc">
182
                        <div class="short">(optional) True if sorting is to be allowed on this column. Defaults to the value of the defaultSortable property. Wh...</div>
183
            <div class="long">
184
                (optional) True if sorting is to be allowed on this column. Defaults to the value of the <a ext:cls="Ext.grid.ColumnModel" ext:member="defaultSortable" href="output/Ext.grid.ColumnModel.html#defaultSortable">defaultSortable</a> property. Whether local/remote sorting is used is specified in <a ext:cls="Ext.data.Store" ext:member="remoteSort" href="output/Ext.data.Store.html#remoteSort">Ext.data.Store.remoteSort</a>.            </div>
185
                        </div>
186
        </td>
187
        <td class="msource">ColumnModel</td>
188
    </tr>
189
        <tr class="config-row expandable">
190
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
191
        <td class="sig">
192
        <a id="Ext.grid.ColumnModel-tooltip"></a>
193
            <b>tooltip</b> : String            <div class="mdesc">
194
                        <div class="short">(optional) A text string to use as the column header's tooltip. If Quicktips are enabled, this value will be used as ...</div>
195
            <div class="long">
196
                (optional) A text string to use as the column header's tooltip. If Quicktips are enabled, this value will be used as the text of the quick tip, otherwise it will be set as the header's HTML title attribute. Defaults to ''.            </div>
197
                        </div>
198
        </td>
199
        <td class="msource">ColumnModel</td>
200
    </tr>
201
        <tr class="config-row alt expandable">
202
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
203
        <td class="sig">
204
        <a id="Ext.grid.ColumnModel-width"></a>
205
            <b>width</b> : Number            <div class="mdesc">
206
                        <div class="short">(optional) The initial width in pixels of the column. Using this instead of Ext.grid.Grid.autoSizeColumns is more eff...</div>
207
            <div class="long">
208
                (optional) The initial width in pixels of the column. Using this instead of <a ext:cls="Ext.grid.Grid" ext:member="autoSizeColumns" href="output/Ext.grid.Grid.html#autoSizeColumns">Ext.grid.Grid.autoSizeColumns</a> is more efficient.            </div>
209
                        </div>
210
        </td>
211
        <td class="msource">ColumnModel</td>
212
    </tr>
213
            </table>
214
                <a id="Ext.grid.ColumnModel-props"></a>
215
        <h2>Public Properties</h2>
216
                <table cellspacing="0" class="member-table">
217
            <tr>
218
                <th class="sig-header" colspan="2">Property</th>
219
                <th class="msource-header">Defined By</th>
220
            </tr>
221
                <tr class="property-row">
222
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
223
        <td class="sig">
224
        <a id="Ext.grid.ColumnModel-defaultSortable"></a>
225
            <b>defaultSortable</b> : Boolean            <div class="mdesc">
226
                            Default sortable of columns which have no sortable specified (defaults to false)                        </div>
227
        </td>
228
        <td class="msource">ColumnModel</td>
229
    </tr>
230
        <tr class="property-row alt">
231
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
232
        <td class="sig">
233
        <a id="Ext.grid.ColumnModel-defaultWidth"></a>
234
            <b>defaultWidth</b> : Number            <div class="mdesc">
235
                            The width of columns which have no width specified (defaults to 100)                        </div>
236
        </td>
237
        <td class="msource">ColumnModel</td>
238
    </tr>
239
            </table>
240
                <a id="Ext.grid.ColumnModel-methods"></a>
241
        <h2>Public Methods</h2>
242
                <table cellspacing="0" class="member-table">
243
            <tr>
244
                <th class="sig-header" colspan="2">Method</th>
245
                <th class="msource-header">Defined By</th>
246
            </tr>
247
                <tr class="method-row expandable">
248
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
249
        <td class="sig">
250
        <a id="Ext.grid.ColumnModel-ColumnModel"></a>
251
            <b>ColumnModel</b>(&nbsp;<code>Object config</code>&nbsp;)            <div class="mdesc">
252
                        <div class="short"></div>
253
            <div class="long">
254
                    <div class="mdetail-params">
255
        <strong>Parameters:</strong>
256
        <ul><li><code>config</code> : Object<div class="sub-desc">An Array of column config objects. See this class's
257
config objects for details.</div></li>        </ul>
258
        <strong>Returns:</strong>
259
        <ul>
260
            <li><code></code></li>
261
        </ul>
262
    </div>
263
                </div>
264
                        </div>
265
        </td>
266
        <td class="msource">ColumnModel</td>
267
    </tr>
268
        <tr class="method-row inherited alt expandable">
269
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
270
        <td class="sig">
271
        <a id="Ext.grid.ColumnModel-addEvents"></a>
272
            <b>addEvents</b>(&nbsp;<code>Object object</code>&nbsp;) : void            <div class="mdesc">
273
                        <div class="short">Used to define events on this Observable</div>
274
            <div class="long">
275
                Used to define events on this Observable    <div class="mdetail-params">
276
        <strong>Parameters:</strong>
277
        <ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li>        </ul>
278
        <strong>Returns:</strong>
279
        <ul>
280
            <li><code>void</code></li>
281
        </ul>
282
    </div>
283
                </div>
284
                        </div>
285
        </td>
286
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
287
    </tr>
288
        <tr class="method-row inherited expandable">
289
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
290
        <td class="sig">
291
        <a id="Ext.grid.ColumnModel-addListener"></a>
292
            <b>addListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">
293
                        <div class="short">Appends an event handler to this component</div>
294
            <div class="long">
295
                Appends an event handler to this component    <div class="mdetail-params">
296
        <strong>Parameters:</strong>
297
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
298
function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
299
properties. This may contain any of the following properties:<ul>
300
<li><b>scope</b> : Object<p class="sub-desc">The scope in which to execute the handler function. The handler function's "this" context.</p></li>
301
<li><b>delay</b> : Number<p class="sub-desc">The number of milliseconds to delay the invocation of the handler after the event fires.</p></li>
302
<li><b>single</b> : Boolean<p class="sub-desc">True to add a handler to handle just the next firing of the event, and then remove itself.</p></li>
303
<li><b>buffer</b> : Number<p class="sub-desc">Causes the handler to be scheduled to run in an <a ext:cls="Ext.util.DelayedTask" href="output/Ext.util.DelayedTask.html">Ext.util.DelayedTask</a> delayed
304
by the specified number of milliseconds. If the event fires again within that time, the original
305
handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li>
306
</ul><br>
307
<p>
308
<b>Combining Options</b><br>
309
Using the options argument, it is possible to combine different types of listeners:<br>
310
<br>
311
A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
312
<pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
313
    single: true,
314
    delay: 100,
315
    forumId: 4
316
});</code></pre>
317
<p>
318
<b>Attaching multiple handlers in 1 call</b><br>
319
The method also allows for a single argument to be passed which is a config object containing properties
320
which specify multiple handlers.
321
<p>
322
<pre><code>foo.on({
323
    <em>'click'</em> : {
324
        fn: <b>this</b>.onClick,
325
        scope: <b>this</b>,
326
        delay: 100
327
    },
328
    <em>'mouseover'</em> : {
329
        fn: <b>this</b>.onMouseOver,
330
        scope: <b>this</b>
331
    },
332
    <em>'mouseout'</em> : {
333
        fn: <b>this</b>.onMouseOut,
334
        scope: <b>this</b>
335
    }
336
});</code></pre>
337
<p>
338
Or a shorthand syntax:<br>
339
<pre><code>foo.on({
340
    <em>'click'</em> : <b>this</b>.onClick,
341
    <em>'mouseover'</em> : <b>this</b>.onMouseOver,
342
    <em>'mouseout'</em> : <b>this</b>.onMouseOut,
343
     scope: <b>this</b>
344
});</code></pre></div></li>        </ul>
345
        <strong>Returns:</strong>
346
        <ul>
347
            <li><code>void</code></li>
348
        </ul>
349
    </div>
350
                </div>
351
                        </div>
352
        </td>
353
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
354
    </tr>
355
        <tr class="method-row inherited alt expandable">
356
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
357
        <td class="sig">
358
        <a id="Ext.grid.ColumnModel-fireEvent"></a>
359
            <b>fireEvent</b>(&nbsp;<code>String eventName</code>, <code>Object... args</code>&nbsp;) : Boolean            <div class="mdesc">
360
                        <div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
361
            <div class="long">
362
                Fires the specified event with the passed parameters (minus the event name).    <div class="mdetail-params">
363
        <strong>Parameters:</strong>
364
        <ul><li><code>eventName</code> : String<div class="sub-desc"></div></li><li><code>args</code> : Object...<div class="sub-desc">Variable number of parameters are passed to handlers</div></li>        </ul>
365
        <strong>Returns:</strong>
366
        <ul>
367
            <li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
368
        </ul>
369
    </div>
370
                </div>
371
                        </div>
372
        </td>
373
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
374
    </tr>
375
        <tr class="method-row expandable">
376
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
377
        <td class="sig">
378
        <a id="Ext.grid.ColumnModel-getCellEditor"></a>
379
            <b>getCellEditor</b>(&nbsp;<code>Number colIndex</code>, <code>Number rowIndex</code>&nbsp;) : Object            <div class="mdesc">
380
                        <div class="short">Returns the editor defined for the cell/column.</div>
381
            <div class="long">
382
                Returns the editor defined for the cell/column.    <div class="mdetail-params">
383
        <strong>Parameters:</strong>
384
        <ul><li><code>colIndex</code> : Number<div class="sub-desc">The column index</div></li><li><code>rowIndex</code> : Number<div class="sub-desc">The row index</div></li>        </ul>
385
        <strong>Returns:</strong>
386
        <ul>
387
            <li><code>Object</code></li>
388
        </ul>
389
    </div>
390
                </div>
391
                        </div>
392
        </td>
393
        <td class="msource">ColumnModel</td>
394
    </tr>
395
        <tr class="method-row alt expandable">
396
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
397
        <td class="sig">
398
        <a id="Ext.grid.ColumnModel-getColumnById"></a>
399
            <b>getColumnById</b>(&nbsp;<code>String id</code>&nbsp;) : Object            <div class="mdesc">
400
                        <div class="short">Returns the column for a specified id.</div>
401
            <div class="long">
402
                Returns the column for a specified id.    <div class="mdetail-params">
403
        <strong>Parameters:</strong>
404
        <ul><li><code>id</code> : String<div class="sub-desc">The column id</div></li>        </ul>
405
        <strong>Returns:</strong>
406
        <ul>
407
            <li><code>Object</code><div class="sub-desc">the column</div></li>
408
        </ul>
409
    </div>
410
                </div>
411
                        </div>
412
        </td>
413
        <td class="msource">ColumnModel</td>
414
    </tr>
415
        <tr class="method-row expandable">
416
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
417
        <td class="sig">
418
        <a id="Ext.grid.ColumnModel-getColumnCount"></a>
419
            <b>getColumnCount</b>() : Number            <div class="mdesc">
420
                        <div class="short">Returns the number of columns.</div>
421
            <div class="long">
422
                Returns the number of columns.    <div class="mdetail-params">
423
        <strong>Parameters:</strong>
424
        <ul><li>None.</li>        </ul>
425
        <strong>Returns:</strong>
426
        <ul>
427
            <li><code>Number</code></li>
428
        </ul>
429
    </div>
430
                </div>
431
                        </div>
432
        </td>
433
        <td class="msource">ColumnModel</td>
434
    </tr>
435
        <tr class="method-row alt expandable">
436
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
437
        <td class="sig">
438
        <a id="Ext.grid.ColumnModel-getColumnHeader"></a>
439
            <b>getColumnHeader</b>(&nbsp;<code>Number col</code>&nbsp;) : String            <div class="mdesc">
440
                        <div class="short">Returns the header for the specified column.</div>
441
            <div class="long">
442
                Returns the header for the specified column.    <div class="mdetail-params">
443
        <strong>Parameters:</strong>
444
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li>        </ul>
445
        <strong>Returns:</strong>
446
        <ul>
447
            <li><code>String</code></li>
448
        </ul>
449
    </div>
450
                </div>
451
                        </div>
452
        </td>
453
        <td class="msource">ColumnModel</td>
454
    </tr>
455
        <tr class="method-row expandable">
456
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
457
        <td class="sig">
458
        <a id="Ext.grid.ColumnModel-getColumnId"></a>
459
            <b>getColumnId</b>(&nbsp;<code>Number index</code>&nbsp;) : String            <div class="mdesc">
460
                        <div class="short">
461
Returns the id of the column at the specified index.</div>
462
            <div class="long">
463
 
464
Returns the id of the column at the specified index.    <div class="mdetail-params">
465
        <strong>Parameters:</strong>
466
        <ul><li><code>index</code> : Number<div class="sub-desc">The column index</div></li>        </ul>
467
        <strong>Returns:</strong>
468
        <ul>
469
            <li><code>String</code><div class="sub-desc">the id</div></li>
470
        </ul>
471
    </div>
472
                </div>
473
                        </div>
474
        </td>
475
        <td class="msource">ColumnModel</td>
476
    </tr>
477
        <tr class="method-row alt expandable">
478
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
479
        <td class="sig">
480
        <a id="Ext.grid.ColumnModel-getColumnTooltip"></a>
481
            <b>getColumnTooltip</b>(&nbsp;<code>Number col</code>&nbsp;) : String            <div class="mdesc">
482
                        <div class="short">Returns the tooltip for the specified column.</div>
483
            <div class="long">
484
                Returns the tooltip for the specified column.    <div class="mdetail-params">
485
        <strong>Parameters:</strong>
486
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li>        </ul>
487
        <strong>Returns:</strong>
488
        <ul>
489
            <li><code>String</code></li>
490
        </ul>
491
    </div>
492
                </div>
493
                        </div>
494
        </td>
495
        <td class="msource">ColumnModel</td>
496
    </tr>
497
        <tr class="method-row expandable">
498
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
499
        <td class="sig">
500
        <a id="Ext.grid.ColumnModel-getColumnWidth"></a>
501
            <b>getColumnWidth</b>(&nbsp;<code>Number col</code>&nbsp;) : Number            <div class="mdesc">
502
                        <div class="short">Returns the width for the specified column.</div>
503
            <div class="long">
504
                Returns the width for the specified column.    <div class="mdetail-params">
505
        <strong>Parameters:</strong>
506
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li>        </ul>
507
        <strong>Returns:</strong>
508
        <ul>
509
            <li><code>Number</code></li>
510
        </ul>
511
    </div>
512
                </div>
513
                        </div>
514
        </td>
515
        <td class="msource">ColumnModel</td>
516
    </tr>
517
        <tr class="method-row alt expandable">
518
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
519
        <td class="sig">
520
        <a id="Ext.grid.ColumnModel-getColumnsBy"></a>
521
            <b>getColumnsBy</b>(&nbsp;<code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : Array            <div class="mdesc">
522
                        <div class="short">Returns the column configs that return true by the passed function that is called with (columnConfig, index)</div>
523
            <div class="long">
524
                Returns the column configs that return true by the passed function that is called with (columnConfig, index)    <div class="mdetail-params">
525
        <strong>Parameters:</strong>
526
        <ul><li><code>fn</code> : Function<div class="sub-desc"></div></li><li><code>scope</code> : Object<div class="sub-desc">(optional)</div></li>        </ul>
527
        <strong>Returns:</strong>
528
        <ul>
529
            <li><code>Array</code><div class="sub-desc">result</div></li>
530
        </ul>
531
    </div>
532
                </div>
533
                        </div>
534
        </td>
535
        <td class="msource">ColumnModel</td>
536
    </tr>
537
        <tr class="method-row expandable">
538
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
539
        <td class="sig">
540
        <a id="Ext.grid.ColumnModel-getDataIndex"></a>
541
            <b>getDataIndex</b>(&nbsp;<code>Number col</code>&nbsp;) : Number            <div class="mdesc">
542
                        <div class="short">Returns the dataIndex for the specified column.</div>
543
            <div class="long">
544
                Returns the dataIndex for the specified column.    <div class="mdetail-params">
545
        <strong>Parameters:</strong>
546
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li>        </ul>
547
        <strong>Returns:</strong>
548
        <ul>
549
            <li><code>Number</code></li>
550
        </ul>
551
    </div>
552
                </div>
553
                        </div>
554
        </td>
555
        <td class="msource">ColumnModel</td>
556
    </tr>
557
        <tr class="method-row alt expandable">
558
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
559
        <td class="sig">
560
        <a id="Ext.grid.ColumnModel-getIndexById"></a>
561
            <b>getIndexById</b>(&nbsp;<code>String id</code>&nbsp;) : Number            <div class="mdesc">
562
                        <div class="short">Returns the index for a specified column id.</div>
563
            <div class="long">
564
                Returns the index for a specified column id.    <div class="mdetail-params">
565
        <strong>Parameters:</strong>
566
        <ul><li><code>id</code> : String<div class="sub-desc">The column id</div></li>        </ul>
567
        <strong>Returns:</strong>
568
        <ul>
569
            <li><code>Number</code><div class="sub-desc">the index, or -1 if not found</div></li>
570
        </ul>
571
    </div>
572
                </div>
573
                        </div>
574
        </td>
575
        <td class="msource">ColumnModel</td>
576
    </tr>
577
        <tr class="method-row expandable">
578
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
579
        <td class="sig">
580
        <a id="Ext.grid.ColumnModel-getRenderer"></a>
581
            <b>getRenderer</b>(&nbsp;<code>Number col</code>&nbsp;) : Function            <div class="mdesc">
582
                        <div class="short">Returns the rendering (formatting) function defined for the column.</div>
583
            <div class="long">
584
                Returns the rendering (formatting) function defined for the column.    <div class="mdetail-params">
585
        <strong>Parameters:</strong>
586
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index.</div></li>        </ul>
587
        <strong>Returns:</strong>
588
        <ul>
589
            <li><code>Function</code><div class="sub-desc">The function used to render the cell. See {@link #setRenderer}.</div></li>
590
        </ul>
591
    </div>
592
                </div>
593
                        </div>
594
        </td>
595
        <td class="msource">ColumnModel</td>
596
    </tr>
597
        <tr class="method-row alt expandable">
598
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
599
        <td class="sig">
600
        <a id="Ext.grid.ColumnModel-getTotalWidth"></a>
601
            <b>getTotalWidth</b>(&nbsp;<code>Boolean includeHidden</code>&nbsp;) : Number            <div class="mdesc">
602
                        <div class="short">Returns the total width of all columns.</div>
603
            <div class="long">
604
                Returns the total width of all columns.    <div class="mdetail-params">
605
        <strong>Parameters:</strong>
606
        <ul><li><code>includeHidden</code> : Boolean<div class="sub-desc">True to include hidden column widths</div></li>        </ul>
607
        <strong>Returns:</strong>
608
        <ul>
609
            <li><code>Number</code></li>
610
        </ul>
611
    </div>
612
                </div>
613
                        </div>
614
        </td>
615
        <td class="msource">ColumnModel</td>
616
    </tr>
617
        <tr class="method-row inherited expandable">
618
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
619
        <td class="sig">
620
        <a id="Ext.grid.ColumnModel-hasListener"></a>
621
            <b>hasListener</b>(&nbsp;<code>String eventName</code>&nbsp;) : Boolean            <div class="mdesc">
622
                        <div class="short">Checks to see if this object has any listeners for a specified event</div>
623
            <div class="long">
624
                Checks to see if this object has any listeners for a specified event    <div class="mdetail-params">
625
        <strong>Parameters:</strong>
626
        <ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li>        </ul>
627
        <strong>Returns:</strong>
628
        <ul>
629
            <li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
630
        </ul>
631
    </div>
632
                </div>
633
                        </div>
634
        </td>
635
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
636
    </tr>
637
        <tr class="method-row alt expandable">
638
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
639
        <td class="sig">
640
        <a id="Ext.grid.ColumnModel-isCellEditable"></a>
641
            <b>isCellEditable</b>(&nbsp;<code>Number colIndex</code>, <code>Number rowIndex</code>&nbsp;) : Boolean            <div class="mdesc">
642
                        <div class="short">Returns true if the cell is editable.</div>
643
            <div class="long">
644
                Returns true if the cell is editable.    <div class="mdetail-params">
645
        <strong>Parameters:</strong>
646
        <ul><li><code>colIndex</code> : Number<div class="sub-desc">The column index</div></li><li><code>rowIndex</code> : Number<div class="sub-desc">The row index</div></li>        </ul>
647
        <strong>Returns:</strong>
648
        <ul>
649
            <li><code>Boolean</code></li>
650
        </ul>
651
    </div>
652
                </div>
653
                        </div>
654
        </td>
655
        <td class="msource">ColumnModel</td>
656
    </tr>
657
        <tr class="method-row expandable">
658
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
659
        <td class="sig">
660
        <a id="Ext.grid.ColumnModel-isFixed"></a>
661
            <b>isFixed</b>() : void            <div class="mdesc">
662
                        <div class="short">Returns true if the column width cannot be changed</div>
663
            <div class="long">
664
                Returns true if the column width cannot be changed    <div class="mdetail-params">
665
        <strong>Parameters:</strong>
666
        <ul><li>None.</li>        </ul>
667
        <strong>Returns:</strong>
668
        <ul>
669
            <li><code>void</code></li>
670
        </ul>
671
    </div>
672
                </div>
673
                        </div>
674
        </td>
675
        <td class="msource">ColumnModel</td>
676
    </tr>
677
        <tr class="method-row alt expandable">
678
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
679
        <td class="sig">
680
        <a id="Ext.grid.ColumnModel-isHidden"></a>
681
            <b>isHidden</b>(&nbsp;<code>Number colIndex</code>&nbsp;) : Boolean            <div class="mdesc">
682
                        <div class="short">Returns true if the column is hidden.</div>
683
            <div class="long">
684
                Returns true if the column is hidden.    <div class="mdetail-params">
685
        <strong>Parameters:</strong>
686
        <ul><li><code>colIndex</code> : Number<div class="sub-desc">The column index</div></li>        </ul>
687
        <strong>Returns:</strong>
688
        <ul>
689
            <li><code>Boolean</code></li>
690
        </ul>
691
    </div>
692
                </div>
693
                        </div>
694
        </td>
695
        <td class="msource">ColumnModel</td>
696
    </tr>
697
        <tr class="method-row expandable">
698
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
699
        <td class="sig">
700
        <a id="Ext.grid.ColumnModel-isMenuDisabled"></a>
701
            <b>isMenuDisabled</b>(&nbsp;<code>Number col</code>&nbsp;) : Boolean            <div class="mdesc">
702
                        <div class="short">Returns true if the specified column menu is disabled.</div>
703
            <div class="long">
704
                Returns true if the specified column menu is disabled.    <div class="mdetail-params">
705
        <strong>Parameters:</strong>
706
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li>        </ul>
707
        <strong>Returns:</strong>
708
        <ul>
709
            <li><code>Boolean</code></li>
710
        </ul>
711
    </div>
712
                </div>
713
                        </div>
714
        </td>
715
        <td class="msource">ColumnModel</td>
716
    </tr>
717
        <tr class="method-row alt expandable">
718
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
719
        <td class="sig">
720
        <a id="Ext.grid.ColumnModel-isResizable"></a>
721
            <b>isResizable</b>() : Boolean            <div class="mdesc">
722
                        <div class="short">Returns true if the column can be resized</div>
723
            <div class="long">
724
                Returns true if the column can be resized    <div class="mdetail-params">
725
        <strong>Parameters:</strong>
726
        <ul><li>None.</li>        </ul>
727
        <strong>Returns:</strong>
728
        <ul>
729
            <li><code>Boolean</code></li>
730
        </ul>
731
    </div>
732
                </div>
733
                        </div>
734
        </td>
735
        <td class="msource">ColumnModel</td>
736
    </tr>
737
        <tr class="method-row expandable">
738
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
739
        <td class="sig">
740
        <a id="Ext.grid.ColumnModel-isSortable"></a>
741
            <b>isSortable</b>(&nbsp;<code>Number col</code>&nbsp;) : Boolean            <div class="mdesc">
742
                        <div class="short">Returns true if the specified column is sortable.</div>
743
            <div class="long">
744
                Returns true if the specified column is sortable.    <div class="mdetail-params">
745
        <strong>Parameters:</strong>
746
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li>        </ul>
747
        <strong>Returns:</strong>
748
        <ul>
749
            <li><code>Boolean</code></li>
750
        </ul>
751
    </div>
752
                </div>
753
                        </div>
754
        </td>
755
        <td class="msource">ColumnModel</td>
756
    </tr>
757
        <tr class="method-row inherited alt expandable">
758
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
759
        <td class="sig">
760
        <a id="Ext.grid.ColumnModel-on"></a>
761
            <b>on</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>, <span class="optional" title="Optional">[<code>Object options</code>]</span>&nbsp;) : void            <div class="mdesc">
762
                        <div class="short">Appends an event handler to this element (shorthand for addListener)</div>
763
            <div class="long">
764
                Appends an event handler to this element (shorthand for addListener)    <div class="mdetail-params">
765
        <strong>Parameters:</strong>
766
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The method the event invokes</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope in which to execute the handler
767
function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li>        </ul>
768
        <strong>Returns:</strong>
769
        <ul>
770
            <li><code>void</code></li>
771
        </ul>
772
    </div>
773
                </div>
774
                        </div>
775
        </td>
776
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
777
    </tr>
778
        <tr class="method-row inherited expandable">
779
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
780
        <td class="sig">
781
        <a id="Ext.grid.ColumnModel-purgeListeners"></a>
782
            <b>purgeListeners</b>() : void            <div class="mdesc">
783
                        <div class="short">Removes all listeners for this object</div>
784
            <div class="long">
785
                Removes all listeners for this object    <div class="mdetail-params">
786
        <strong>Parameters:</strong>
787
        <ul><li>None.</li>        </ul>
788
        <strong>Returns:</strong>
789
        <ul>
790
            <li><code>void</code></li>
791
        </ul>
792
    </div>
793
                </div>
794
                        </div>
795
        </td>
796
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
797
    </tr>
798
        <tr class="method-row inherited alt expandable">
799
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
800
        <td class="sig">
801
        <a id="Ext.grid.ColumnModel-removeListener"></a>
802
            <b>removeListener</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">
803
                        <div class="short">Removes a listener</div>
804
            <div class="long">
805
                Removes a listener    <div class="mdetail-params">
806
        <strong>Parameters:</strong>
807
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li>        </ul>
808
        <strong>Returns:</strong>
809
        <ul>
810
            <li><code>void</code></li>
811
        </ul>
812
    </div>
813
                </div>
814
                        </div>
815
        </td>
816
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
817
    </tr>
818
        <tr class="method-row inherited expandable">
819
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
820
        <td class="sig">
821
        <a id="Ext.grid.ColumnModel-resumeEvents"></a>
822
            <b>resumeEvents</b>() : void            <div class="mdesc">
823
                        <div class="short">Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)</div>
824
            <div class="long">
825
                Resume firing events. (see <a ext:cls="Ext.util.Observable" ext:member="suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">suspendEvents</a>)    <div class="mdetail-params">
826
        <strong>Parameters:</strong>
827
        <ul><li>None.</li>        </ul>
828
        <strong>Returns:</strong>
829
        <ul>
830
            <li><code>void</code></li>
831
        </ul>
832
    </div>
833
                </div>
834
                        </div>
835
        </td>
836
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
837
    </tr>
838
        <tr class="method-row alt expandable">
839
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
840
        <td class="sig">
841
        <a id="Ext.grid.ColumnModel-setColumnHeader"></a>
842
            <b>setColumnHeader</b>(&nbsp;<code>Number col</code>, <code>String header</code>&nbsp;) : void            <div class="mdesc">
843
                        <div class="short">Sets the header for a column.</div>
844
            <div class="long">
845
                Sets the header for a column.    <div class="mdetail-params">
846
        <strong>Parameters:</strong>
847
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li><li><code>header</code> : String<div class="sub-desc">The new header</div></li>        </ul>
848
        <strong>Returns:</strong>
849
        <ul>
850
            <li><code>void</code></li>
851
        </ul>
852
    </div>
853
                </div>
854
                        </div>
855
        </td>
856
        <td class="msource">ColumnModel</td>
857
    </tr>
858
        <tr class="method-row expandable">
859
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
860
        <td class="sig">
861
        <a id="Ext.grid.ColumnModel-setColumnTooltip"></a>
862
            <b>setColumnTooltip</b>(&nbsp;<code>Number col</code>, <code>String tooltip</code>&nbsp;) : void            <div class="mdesc">
863
                        <div class="short">Sets the tooltip for a column.</div>
864
            <div class="long">
865
                Sets the tooltip for a column.    <div class="mdetail-params">
866
        <strong>Parameters:</strong>
867
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li><li><code>tooltip</code> : String<div class="sub-desc">The new tooltip</div></li>        </ul>
868
        <strong>Returns:</strong>
869
        <ul>
870
            <li><code>void</code></li>
871
        </ul>
872
    </div>
873
                </div>
874
                        </div>
875
        </td>
876
        <td class="msource">ColumnModel</td>
877
    </tr>
878
        <tr class="method-row alt expandable">
879
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
880
        <td class="sig">
881
        <a id="Ext.grid.ColumnModel-setColumnWidth"></a>
882
            <b>setColumnWidth</b>(&nbsp;<code>Number col</code>, <code>Number width</code>&nbsp;) : void            <div class="mdesc">
883
                        <div class="short">Sets the width for a column.</div>
884
            <div class="long">
885
                Sets the width for a column.    <div class="mdetail-params">
886
        <strong>Parameters:</strong>
887
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li><li><code>width</code> : Number<div class="sub-desc">The new width</div></li>        </ul>
888
        <strong>Returns:</strong>
889
        <ul>
890
            <li><code>void</code></li>
891
        </ul>
892
    </div>
893
                </div>
894
                        </div>
895
        </td>
896
        <td class="msource">ColumnModel</td>
897
    </tr>
898
        <tr class="method-row expandable">
899
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
900
        <td class="sig">
901
        <a id="Ext.grid.ColumnModel-setConfig"></a>
902
            <b>setConfig</b>(&nbsp;<code>Array config</code>&nbsp;) : void            <div class="mdesc">
903
                        <div class="short">Reconfigures this column model</div>
904
            <div class="long">
905
                Reconfigures this column model    <div class="mdetail-params">
906
        <strong>Parameters:</strong>
907
        <ul><li><code>config</code> : Array<div class="sub-desc">Array of Column configs</div></li>        </ul>
908
        <strong>Returns:</strong>
909
        <ul>
910
            <li><code>void</code></li>
911
        </ul>
912
    </div>
913
                </div>
914
                        </div>
915
        </td>
916
        <td class="msource">ColumnModel</td>
917
    </tr>
918
        <tr class="method-row alt expandable">
919
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
920
        <td class="sig">
921
        <a id="Ext.grid.ColumnModel-setDataIndex"></a>
922
            <b>setDataIndex</b>(&nbsp;<code>Number col</code>, <code>Number dataIndex</code>&nbsp;) : void            <div class="mdesc">
923
                        <div class="short">Sets the dataIndex for a column.</div>
924
            <div class="long">
925
                Sets the dataIndex for a column.    <div class="mdetail-params">
926
        <strong>Parameters:</strong>
927
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li><li><code>dataIndex</code> : Number<div class="sub-desc">The new dataIndex</div></li>        </ul>
928
        <strong>Returns:</strong>
929
        <ul>
930
            <li><code>void</code></li>
931
        </ul>
932
    </div>
933
                </div>
934
                        </div>
935
        </td>
936
        <td class="msource">ColumnModel</td>
937
    </tr>
938
        <tr class="method-row expandable">
939
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
940
        <td class="sig">
941
        <a id="Ext.grid.ColumnModel-setEditable"></a>
942
            <b>setEditable</b>(&nbsp;<code>Number col</code>, <code>Boolean editable</code>&nbsp;) : void            <div class="mdesc">
943
                        <div class="short">Sets if a column is editable.</div>
944
            <div class="long">
945
                Sets if a column is editable.    <div class="mdetail-params">
946
        <strong>Parameters:</strong>
947
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li><li><code>editable</code> : Boolean<div class="sub-desc">True if the column is editable</div></li>        </ul>
948
        <strong>Returns:</strong>
949
        <ul>
950
            <li><code>void</code></li>
951
        </ul>
952
    </div>
953
                </div>
954
                        </div>
955
        </td>
956
        <td class="msource">ColumnModel</td>
957
    </tr>
958
        <tr class="method-row alt expandable">
959
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
960
        <td class="sig">
961
        <a id="Ext.grid.ColumnModel-setEditor"></a>
962
            <b>setEditor</b>(&nbsp;<code>Number col</code>, <code>Object editor</code>&nbsp;) : void            <div class="mdesc">
963
                        <div class="short">Sets the editor for a column.</div>
964
            <div class="long">
965
                Sets the editor for a column.    <div class="mdetail-params">
966
        <strong>Parameters:</strong>
967
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li><li><code>editor</code> : Object<div class="sub-desc">The editor object</div></li>        </ul>
968
        <strong>Returns:</strong>
969
        <ul>
970
            <li><code>void</code></li>
971
        </ul>
972
    </div>
973
                </div>
974
                        </div>
975
        </td>
976
        <td class="msource">ColumnModel</td>
977
    </tr>
978
        <tr class="method-row expandable">
979
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
980
        <td class="sig">
981
        <a id="Ext.grid.ColumnModel-setHidden"></a>
982
            <b>setHidden</b>(&nbsp;<code>Number colIndex</code>, <code>Boolean hidden</code>&nbsp;) : void            <div class="mdesc">
983
                        <div class="short">Sets if a column is hidden.</div>
984
            <div class="long">
985
                Sets if a column is hidden.    <div class="mdetail-params">
986
        <strong>Parameters:</strong>
987
        <ul><li><code>colIndex</code> : Number<div class="sub-desc">The column index</div></li><li><code>hidden</code> : Boolean<div class="sub-desc">True if the column is hidden</div></li>        </ul>
988
        <strong>Returns:</strong>
989
        <ul>
990
            <li><code>void</code></li>
991
        </ul>
992
    </div>
993
                </div>
994
                        </div>
995
        </td>
996
        <td class="msource">ColumnModel</td>
997
    </tr>
998
        <tr class="method-row alt expandable">
999
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1000
        <td class="sig">
1001
        <a id="Ext.grid.ColumnModel-setRenderer"></a>
1002
            <b>setRenderer</b>(&nbsp;<code>Number col</code>, <code>Function fn</code>&nbsp;) : void            <div class="mdesc">
1003
                        <div class="short">Sets the rendering (formatting) function for a column.  See <a ext:cls="Ext.util.Format" href="output/Ext.util.Format.html">Ext.util.Format</a> for some
1004
default formatting functions.</div>
1005
            <div class="long">
1006
                Sets the rendering (formatting) function for a column.  See <a ext:cls="Ext.util.Format" href="output/Ext.util.Format.html">Ext.util.Format</a> for some
1007
default formatting functions.    <div class="mdetail-params">
1008
        <strong>Parameters:</strong>
1009
        <ul><li><code>col</code> : Number<div class="sub-desc">The column index</div></li><li><code>fn</code> : Function<div class="sub-desc">The function to use to process the cell's raw data
1010
to return HTML markup for the grid view. The render function is called with
1011
the following parameters:<ul>
1012
<li><b>value</b> : Object<p class="sub-desc">The data value for the cell.</p></li>
1013
<li><b>metadata</b> : Object<p class="sub-desc">An object in which you may set the following attributes:<ul>
1014
<li><b>css</b> : String<p class="sub-desc">A CSS class name to add to the cell's TD element.</p></li>
1015
<li><b>attr</b> : String<p class="sub-desc">An HTML attribute definition string to apply to the data container element <i>within</i> the table cell
1016
(e.g. 'style="color:red;"').</p></li></ul></p></li>
1017
<li><b>record</b> : Ext.data.record<p class="sub-desc">The <a ext:cls="Ext.data.Record" href="output/Ext.data.Record.html">Ext.data.Record</a> from which the data was extracted.</p></li>
1018
<li><b>rowIndex</b> : Number<p class="sub-desc">Row index</p></li>
1019
<li><b>colIndex</b> : Number<p class="sub-desc">Column index</p></li>
1020
<li><b>store</b> : Ext.data.Store<p class="sub-desc">The <a ext:cls="Ext.data.Store" href="output/Ext.data.Store.html">Ext.data.Store</a> object from which the Record was extracted.</p></li></ul></div></li>        </ul>
1021
        <strong>Returns:</strong>
1022
        <ul>
1023
            <li><code>void</code></li>
1024
        </ul>
1025
    </div>
1026
                </div>
1027
                        </div>
1028
        </td>
1029
        <td class="msource">ColumnModel</td>
1030
    </tr>
1031
        <tr class="method-row inherited expandable">
1032
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1033
        <td class="sig">
1034
        <a id="Ext.grid.ColumnModel-suspendEvents"></a>
1035
            <b>suspendEvents</b>() : void            <div class="mdesc">
1036
                        <div class="short">Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)</div>
1037
            <div class="long">
1038
                Suspend the firing of all events. (see <a ext:cls="Ext.util.Observable" ext:member="resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">resumeEvents</a>)    <div class="mdetail-params">
1039
        <strong>Parameters:</strong>
1040
        <ul><li>None.</li>        </ul>
1041
        <strong>Returns:</strong>
1042
        <ul>
1043
            <li><code>void</code></li>
1044
        </ul>
1045
    </div>
1046
                </div>
1047
                        </div>
1048
        </td>
1049
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
1050
    </tr>
1051
        <tr class="method-row inherited alt expandable">
1052
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1053
        <td class="sig">
1054
        <a id="Ext.grid.ColumnModel-un"></a>
1055
            <b>un</b>(&nbsp;<code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span>&nbsp;) : void            <div class="mdesc">
1056
                        <div class="short">Removes a listener (shorthand for removeListener)</div>
1057
            <div class="long">
1058
                Removes a listener (shorthand for removeListener)    <div class="mdetail-params">
1059
        <strong>Parameters:</strong>
1060
        <ul><li><code>eventName</code> : String<div class="sub-desc">The type of event to listen for</div></li><li><code>handler</code> : Function<div class="sub-desc">The handler to remove</div></li><li><code>scope</code> : Object<div class="sub-desc">(optional) The scope (this object) for the handler</div></li>        </ul>
1061
        <strong>Returns:</strong>
1062
        <ul>
1063
            <li><code>void</code></li>
1064
        </ul>
1065
    </div>
1066
                </div>
1067
                        </div>
1068
        </td>
1069
        <td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
1070
    </tr>
1071
            </table>
1072
                <a id="Ext.grid.ColumnModel-events"></a>
1073
        <h2>Public Events</h2>
1074
                <table cellspacing="0" class="member-table">
1075
            <tr>
1076
                <th class="sig-header" colspan="2">Event</th>
1077
                <th class="msource-header">Defined By</th>
1078
            </tr>
1079
                <tr class="event-row expandable">
1080
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1081
        <td class="sig">
1082
        <a id="Ext.grid.ColumnModel-columnmoved"></a>
1083
            <b>columnmoved</b> : (&nbsp;<code>ColumnModel this</code>, <code>Number oldIndex</code>, <code>Number newIndex</code>&nbsp;)            <div class="mdesc">
1084
                        <div class="short">Fires when a column is moved.</div>
1085
            <div class="long">
1086
                Fires when a column is moved.    <div class="mdetail-params">
1087
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1088
        <ul><li><code>this</code> : ColumnModel<div class="sub-desc"></div></li><li><code>oldIndex</code> : Number<div class="sub-desc"></div></li><li><code>newIndex</code> : Number<div class="sub-desc"></div></li>        </ul>
1089
    </div>
1090
                </div>
1091
                        </div>
1092
        </td>
1093
        <td class="msource">ColumnModel</td>
1094
    </tr>
1095
        <tr class="event-row alt expandable">
1096
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1097
        <td class="sig">
1098
        <a id="Ext.grid.ColumnModel-configchanged"></a>
1099
            <b>configchanged</b> : (&nbsp;<code>ColumnModel this</code>&nbsp;)            <div class="mdesc">
1100
                        <div class="short">Fires when the configuration is changed</div>
1101
            <div class="long">
1102
                Fires when the configuration is changed    <div class="mdetail-params">
1103
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1104
        <ul><li><code>this</code> : ColumnModel<div class="sub-desc"></div></li>        </ul>
1105
    </div>
1106
                </div>
1107
                        </div>
1108
        </td>
1109
        <td class="msource">ColumnModel</td>
1110
    </tr>
1111
        <tr class="event-row expandable">
1112
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1113
        <td class="sig">
1114
        <a id="Ext.grid.ColumnModel-headerchange"></a>
1115
            <b>headerchange</b> : (&nbsp;<code>ColumnModel this</code>, <code>Number columnIndex</code>, <code>String newText</code>&nbsp;)            <div class="mdesc">
1116
                        <div class="short">Fires when the text of a header changes.</div>
1117
            <div class="long">
1118
                Fires when the text of a header changes.    <div class="mdetail-params">
1119
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1120
        <ul><li><code>this</code> : ColumnModel<div class="sub-desc"></div></li><li><code>columnIndex</code> : Number<div class="sub-desc">The column index</div></li><li><code>newText</code> : String<div class="sub-desc">The new header text</div></li>        </ul>
1121
    </div>
1122
                </div>
1123
                        </div>
1124
        </td>
1125
        <td class="msource">ColumnModel</td>
1126
    </tr>
1127
        <tr class="event-row alt expandable">
1128
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1129
        <td class="sig">
1130
        <a id="Ext.grid.ColumnModel-hiddenchange"></a>
1131
            <b>hiddenchange</b> : (&nbsp;<code>ColumnModel this</code>, <code>Number columnIndex</code>, <code>Boolean hidden</code>&nbsp;)            <div class="mdesc">
1132
                        <div class="short">Fires when a column is hidden or "unhidden".</div>
1133
            <div class="long">
1134
                Fires when a column is hidden or "unhidden".    <div class="mdetail-params">
1135
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1136
        <ul><li><code>this</code> : ColumnModel<div class="sub-desc"></div></li><li><code>columnIndex</code> : Number<div class="sub-desc">The column index</div></li><li><code>hidden</code> : Boolean<div class="sub-desc">true if hidden, false otherwise</div></li>        </ul>
1137
    </div>
1138
                </div>
1139
                        </div>
1140
        </td>
1141
        <td class="msource">ColumnModel</td>
1142
    </tr>
1143
        <tr class="event-row expandable">
1144
        <td class="micon"><a class="exi" href="#expand">&nbsp;</a></td>
1145
        <td class="sig">
1146
        <a id="Ext.grid.ColumnModel-widthchange"></a>
1147
            <b>widthchange</b> : (&nbsp;<code>ColumnModel this</code>, <code>Number columnIndex</code>, <code>Number newWidth</code>&nbsp;)            <div class="mdesc">
1148
                        <div class="short">Fires when the width of a column changes.</div>
1149
            <div class="long">
1150
                Fires when the width of a column changes.    <div class="mdetail-params">
1151
        <strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
1152
        <ul><li><code>this</code> : ColumnModel<div class="sub-desc"></div></li><li><code>columnIndex</code> : Number<div class="sub-desc">The column index</div></li><li><code>newWidth</code> : Number<div class="sub-desc">The new width</div></li>        </ul>
1153
    </div>
1154
                </div>
1155
                        </div>
1156
        </td>
1157
        <td class="msource">ColumnModel</td>
1158
    </tr>
1159
            </table>
1160
 
1161
        </div>