1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
<div class="body-wrap" xmlns:ext="http://www.extjs.com"><div class="top-tools"><a class="inner-link" href="#Ext.ux.grid.CheckColumn-props"><img src="resources/images/default/s.gif" class="item-icon icon-prop">Properties</a> <a class="inner-link" href="#Ext.ux.grid.CheckColumn-methods"><img src="resources/images/default/s.gif" class="item-icon icon-method">Methods</a> <a class="inner-link" href="#Ext.ux.grid.CheckColumn-events"><img src="resources/images/default/s.gif" class="item-icon icon-event">Events</a> <a class="bookmark" href="../docs/?class=Ext.ux.grid.CheckColumn"><img src="resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a> </div><h1>Class <a href="source/CheckColumn.html#cls-Ext.ux.grid.CheckColumn">Ext.ux.grid.CheckColumn</a></h1><table cellspacing="0"><tr><td class="label">Package:</td><td class="hd-info">Ext.ux.grid</td></tr><tr><td class="label">Defined In:</td><td class="hd-info">CheckColumn.js</td></tr><tr><td class="label">Class:</td><td class="hd-info"><a href="source/CheckColumn.html#cls-Ext.ux.grid.CheckColumn">CheckColumn</a></td></tr><tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr><tr><td class="hd-info"></td></tr></table><div class="description">GridPanel plugin to add a column with check boxes to a grid.
<p>Example usage:</p>
<pre><code><i>// create the column
</i>
<b>var</b> checkColumn = <b>new</b> Ext.grid.CheckColumn({
header: <em>'Indoor?'</em>,
dataIndex: <em>'indoor'</em>,
id: <em>'check'</em>,
width: 55
});
<i>// add the column to the column model
</i>
<b>var</b> cm = <b>new</b> Ext.grid.ColumnModel([{
header: <em>'Foo'</em>,
...
},
checkColumn
]);
<i>// create the grid
</i>
<b>var</b> grid = <b>new</b> Ext.grid.EditorGridPanel({
...
cm: cm,
plugins: [checkColumn], <i>// include plugin
</i>
...
});</code></pre>
In addition to storing a Boolean value within the record data, this
class toggles a css class between <tt>'x-grid3-check-col'</tt> and
<tt>'x-grid3-check-col-on'</tt> to alter the background image used for
a column.</div><div class="hr"></div><a id="Ext.ux.grid.CheckColumn-props"></a><h2>Public Properties</h2><div class="no-members">This class has no public properties.</div><a id="Ext.ux.grid.CheckColumn-methods"></a><h2>Public Methods</h2><div class="no-members">This class has no public methods.</div><a id="Ext.ux.grid.CheckColumn-events"></a><h2>Public Events</h2><div class="no-members">This class has no public events.</div></div>
|