2 |
aperonnet |
1 |
<div class="body-wrap">
|
|
|
2 |
<div class="top-tools">
|
|
|
3 |
<a class="inner-link" href="#Ext.grid.CheckboxSelectionModel-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
|
|
|
4 |
<a class="inner-link" href="#Ext.grid.CheckboxSelectionModel-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
|
|
|
5 |
<a class="inner-link" href="#Ext.grid.CheckboxSelectionModel-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
|
|
|
6 |
<a class="inner-link" href="#Ext.grid.CheckboxSelectionModel-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.CheckboxSelectionModel"><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"/><a ext:cls="Ext.grid.AbstractSelectionModel" ext:member="" href="output/Ext.grid.AbstractSelectionModel.html">AbstractSelectionModel</a>
|
|
|
12 |
<img src="resources/elbow-end.gif"/><a ext:cls="Ext.grid.RowSelectionModel" ext:member="" href="output/Ext.grid.RowSelectionModel.html">RowSelectionModel</a>
|
|
|
13 |
<img src="resources/elbow-end.gif"/>CheckboxSelectionModel</pre></div>
|
|
|
14 |
<h1>Class Ext.grid.CheckboxSelectionModel</h1>
|
|
|
15 |
<table cellspacing="0">
|
|
|
16 |
<tr><td class="label">Package:</td><td class="hd-info">Ext.grid</td></tr>
|
|
|
17 |
<tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/widgets/grid/CheckboxSelectionModel.js" target="_blank">CheckboxSelectionModel.js</a></td></tr>
|
|
|
18 |
<tr><td class="label">Class:</td><td class="hd-info">CheckboxSelectionModel</td></tr>
|
|
|
19 |
<tr><td class="label">Extends:</td><td class="hd-info"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="" href="output/Ext.grid.RowSelectionModel.html">RowSelectionModel</a></td></tr>
|
|
|
20 |
</table>
|
|
|
21 |
<div class="description">
|
|
|
22 |
A custom selection model that renders a column of checkboxes that can be toggled to select or deselect rows. </div>
|
|
|
23 |
|
|
|
24 |
<div class="hr"></div>
|
|
|
25 |
<a id="Ext.grid.CheckboxSelectionModel-configs"></a>
|
|
|
26 |
<h2>Config Options</h2>
|
|
|
27 |
<table cellspacing="0" class="member-table">
|
|
|
28 |
<tr>
|
|
|
29 |
<th class="sig-header" colspan="2">Config Options</th>
|
|
|
30 |
<th class="msource-header">Defined By</th>
|
|
|
31 |
</tr>
|
|
|
32 |
<tr class="config-row expandable">
|
|
|
33 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
34 |
<td class="sig">
|
|
|
35 |
<a id="Ext.grid.CheckboxSelectionModel-header"></a>
|
|
|
36 |
<b>header</b> : String <div class="mdesc">
|
|
|
37 |
<div class="short">Any valid text or HTML fragment to display in the header cell for the checkbox column (defaults to '<div class="x-...</div>
|
|
|
38 |
<div class="long">
|
|
|
39 |
Any valid text or HTML fragment to display in the header cell for the checkbox column (defaults to '<div class="x-grid3-hd-checker"> </div>'). The default CSS class of 'x-grid3-hd-checker' displays a checkbox in the header and provides support for automatic check all/none behavior on header click. This string can be replaced by any valid HTML fragment, including a simple text string (e.g., 'Select Rows'), but the automatic check all/none behavior will only work if the 'x-grid3-hd-checker' class is supplied. </div>
|
|
|
40 |
</div>
|
|
|
41 |
</td>
|
|
|
42 |
<td class="msource">CheckboxSelectionModel</td>
|
|
|
43 |
</tr>
|
|
|
44 |
<tr class="config-row inherited alt expandable">
|
|
|
45 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
46 |
<td class="sig">
|
|
|
47 |
<a id="Ext.grid.CheckboxSelectionModel-listeners"></a>
|
|
|
48 |
<b>listeners</b> : Object <div class="mdesc">
|
|
|
49 |
<div class="short">A config object containing one or more event handlers to be added to this object during initialization. This should b...</div>
|
|
|
50 |
<div class="long">
|
|
|
51 |
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>
|
|
|
52 |
</div>
|
|
|
53 |
</td>
|
|
|
54 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#listeners" href="output/Ext.util.Observable.html#listeners">Observable</a></td>
|
|
|
55 |
</tr>
|
|
|
56 |
<tr class="config-row inherited">
|
|
|
57 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
58 |
<td class="sig">
|
|
|
59 |
<a id="Ext.grid.CheckboxSelectionModel-moveEditorOnEnter"></a>
|
|
|
60 |
<b>moveEditorOnEnter</b> : Boolean <div class="mdesc">
|
|
|
61 |
False to turn off moving the editor to the next cell when the enter key is pressed </div>
|
|
|
62 |
</td>
|
|
|
63 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#moveEditorOnEnter" href="output/Ext.grid.RowSelectionModel.html#moveEditorOnEnter">RowSelectionModel</a></td>
|
|
|
64 |
</tr>
|
|
|
65 |
<tr class="config-row inherited alt">
|
|
|
66 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
67 |
<td class="sig">
|
|
|
68 |
<a id="Ext.grid.CheckboxSelectionModel-singleSelect"></a>
|
|
|
69 |
<b>singleSelect</b> : Boolean <div class="mdesc">
|
|
|
70 |
True to allow selection of only one row at a time (defaults to false) </div>
|
|
|
71 |
</td>
|
|
|
72 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#singleSelect" href="output/Ext.grid.RowSelectionModel.html#singleSelect">RowSelectionModel</a></td>
|
|
|
73 |
</tr>
|
|
|
74 |
<tr class="config-row">
|
|
|
75 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
76 |
<td class="sig">
|
|
|
77 |
<a id="Ext.grid.CheckboxSelectionModel-sortable"></a>
|
|
|
78 |
<b>sortable</b> : Boolean <div class="mdesc">
|
|
|
79 |
True if the checkbox column is sortable (defaults to false). </div>
|
|
|
80 |
</td>
|
|
|
81 |
<td class="msource">CheckboxSelectionModel</td>
|
|
|
82 |
</tr>
|
|
|
83 |
<tr class="config-row alt">
|
|
|
84 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
85 |
<td class="sig">
|
|
|
86 |
<a id="Ext.grid.CheckboxSelectionModel-width"></a>
|
|
|
87 |
<b>width</b> : Number <div class="mdesc">
|
|
|
88 |
The default width in pixels of the checkbox column (defaults to 20). </div>
|
|
|
89 |
</td>
|
|
|
90 |
<td class="msource">CheckboxSelectionModel</td>
|
|
|
91 |
</tr>
|
|
|
92 |
</table>
|
|
|
93 |
<a id="Ext.grid.CheckboxSelectionModel-props"></a>
|
|
|
94 |
<h2>Public Properties</h2>
|
|
|
95 |
<div class="no-members">This class has no public properties.</div> <a id="Ext.grid.CheckboxSelectionModel-methods"></a>
|
|
|
96 |
<h2>Public Methods</h2>
|
|
|
97 |
<table cellspacing="0" class="member-table">
|
|
|
98 |
<tr>
|
|
|
99 |
<th class="sig-header" colspan="2">Method</th>
|
|
|
100 |
<th class="msource-header">Defined By</th>
|
|
|
101 |
</tr>
|
|
|
102 |
<tr class="method-row expandable">
|
|
|
103 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
104 |
<td class="sig">
|
|
|
105 |
<a id="Ext.grid.CheckboxSelectionModel-CheckboxSelectionModel"></a>
|
|
|
106 |
<b>CheckboxSelectionModel</b>( <code>Object config</code> ) <div class="mdesc">
|
|
|
107 |
<div class="short"></div>
|
|
|
108 |
<div class="long">
|
|
|
109 |
<div class="mdetail-params">
|
|
|
110 |
<strong>Parameters:</strong>
|
|
|
111 |
<ul><li><code>config</code> : Object<div class="sub-desc">The configuration options</div></li> </ul>
|
|
|
112 |
<strong>Returns:</strong>
|
|
|
113 |
<ul>
|
|
|
114 |
<li><code></code></li>
|
|
|
115 |
</ul>
|
|
|
116 |
</div>
|
|
|
117 |
</div>
|
|
|
118 |
</div>
|
|
|
119 |
</td>
|
|
|
120 |
<td class="msource">CheckboxSelectionModel</td>
|
|
|
121 |
</tr>
|
|
|
122 |
<tr class="method-row inherited alt expandable">
|
|
|
123 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
124 |
<td class="sig">
|
|
|
125 |
<a id="Ext.grid.CheckboxSelectionModel-addEvents"></a>
|
|
|
126 |
<b>addEvents</b>( <code>Object object</code> ) : void <div class="mdesc">
|
|
|
127 |
<div class="short">Used to define events on this Observable</div>
|
|
|
128 |
<div class="long">
|
|
|
129 |
Used to define events on this Observable <div class="mdetail-params">
|
|
|
130 |
<strong>Parameters:</strong>
|
|
|
131 |
<ul><li><code>object</code> : Object<div class="sub-desc">The object with the events defined</div></li> </ul>
|
|
|
132 |
<strong>Returns:</strong>
|
|
|
133 |
<ul>
|
|
|
134 |
<li><code>void</code></li>
|
|
|
135 |
</ul>
|
|
|
136 |
</div>
|
|
|
137 |
</div>
|
|
|
138 |
</div>
|
|
|
139 |
</td>
|
|
|
140 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addEvents" href="output/Ext.util.Observable.html#addEvents">Observable</a></td>
|
|
|
141 |
</tr>
|
|
|
142 |
<tr class="method-row inherited expandable">
|
|
|
143 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
144 |
<td class="sig">
|
|
|
145 |
<a id="Ext.grid.CheckboxSelectionModel-addListener"></a>
|
|
|
146 |
<b>addListener</b>( <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> ) : void <div class="mdesc">
|
|
|
147 |
<div class="short">Appends an event handler to this component</div>
|
|
|
148 |
<div class="long">
|
|
|
149 |
Appends an event handler to this component <div class="mdetail-params">
|
|
|
150 |
<strong>Parameters:</strong>
|
|
|
151 |
<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
|
|
|
152 |
function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional) An object containing handler configuration
|
|
|
153 |
properties. This may contain any of the following properties:<ul>
|
|
|
154 |
<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>
|
|
|
155 |
<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>
|
|
|
156 |
<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>
|
|
|
157 |
<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
|
|
|
158 |
by the specified number of milliseconds. If the event fires again within that time, the original
|
|
|
159 |
handler is <em>not</em> invoked, but the new handler is scheduled in its place.</p></li>
|
|
|
160 |
</ul><br>
|
|
|
161 |
<p>
|
|
|
162 |
<b>Combining Options</b><br>
|
|
|
163 |
Using the options argument, it is possible to combine different types of listeners:<br>
|
|
|
164 |
<br>
|
|
|
165 |
A normalized, delayed, one-time listener that auto stops the event and passes a custom argument (forumId)
|
|
|
166 |
<pre><code>el.on(<em>'click'</em>, <b>this</b>.onClick, <b>this</b>, {
|
|
|
167 |
single: true,
|
|
|
168 |
delay: 100,
|
|
|
169 |
forumId: 4
|
|
|
170 |
});</code></pre>
|
|
|
171 |
<p>
|
|
|
172 |
<b>Attaching multiple handlers in 1 call</b><br>
|
|
|
173 |
The method also allows for a single argument to be passed which is a config object containing properties
|
|
|
174 |
which specify multiple handlers.
|
|
|
175 |
<p>
|
|
|
176 |
<pre><code>foo.on({
|
|
|
177 |
<em>'click'</em> : {
|
|
|
178 |
fn: <b>this</b>.onClick,
|
|
|
179 |
scope: <b>this</b>,
|
|
|
180 |
delay: 100
|
|
|
181 |
},
|
|
|
182 |
<em>'mouseover'</em> : {
|
|
|
183 |
fn: <b>this</b>.onMouseOver,
|
|
|
184 |
scope: <b>this</b>
|
|
|
185 |
},
|
|
|
186 |
<em>'mouseout'</em> : {
|
|
|
187 |
fn: <b>this</b>.onMouseOut,
|
|
|
188 |
scope: <b>this</b>
|
|
|
189 |
}
|
|
|
190 |
});</code></pre>
|
|
|
191 |
<p>
|
|
|
192 |
Or a shorthand syntax:<br>
|
|
|
193 |
<pre><code>foo.on({
|
|
|
194 |
<em>'click'</em> : <b>this</b>.onClick,
|
|
|
195 |
<em>'mouseover'</em> : <b>this</b>.onMouseOver,
|
|
|
196 |
<em>'mouseout'</em> : <b>this</b>.onMouseOut,
|
|
|
197 |
scope: <b>this</b>
|
|
|
198 |
});</code></pre></div></li> </ul>
|
|
|
199 |
<strong>Returns:</strong>
|
|
|
200 |
<ul>
|
|
|
201 |
<li><code>void</code></li>
|
|
|
202 |
</ul>
|
|
|
203 |
</div>
|
|
|
204 |
</div>
|
|
|
205 |
</div>
|
|
|
206 |
</td>
|
|
|
207 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#addListener" href="output/Ext.util.Observable.html#addListener">Observable</a></td>
|
|
|
208 |
</tr>
|
|
|
209 |
<tr class="method-row inherited alt expandable">
|
|
|
210 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
211 |
<td class="sig">
|
|
|
212 |
<a id="Ext.grid.CheckboxSelectionModel-clearSelections"></a>
|
|
|
213 |
<b>clearSelections</b>() : void <div class="mdesc">
|
|
|
214 |
<div class="short">Clears all selections.</div>
|
|
|
215 |
<div class="long">
|
|
|
216 |
Clears all selections. <div class="mdetail-params">
|
|
|
217 |
<strong>Parameters:</strong>
|
|
|
218 |
<ul><li>None.</li> </ul>
|
|
|
219 |
<strong>Returns:</strong>
|
|
|
220 |
<ul>
|
|
|
221 |
<li><code>void</code></li>
|
|
|
222 |
</ul>
|
|
|
223 |
</div>
|
|
|
224 |
</div>
|
|
|
225 |
</div>
|
|
|
226 |
</td>
|
|
|
227 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#clearSelections" href="output/Ext.grid.RowSelectionModel.html#clearSelections">RowSelectionModel</a></td>
|
|
|
228 |
</tr>
|
|
|
229 |
<tr class="method-row inherited expandable">
|
|
|
230 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
231 |
<td class="sig">
|
|
|
232 |
<a id="Ext.grid.CheckboxSelectionModel-deselectRange"></a>
|
|
|
233 |
<b>deselectRange</b>( <code>Number startRow</code>, <code>Number endRow</code> ) : void <div class="mdesc">
|
|
|
234 |
<div class="short">Deselects a range of rows. All rows in between startRow and endRow are also deselected.</div>
|
|
|
235 |
<div class="long">
|
|
|
236 |
Deselects a range of rows. All rows in between startRow and endRow are also deselected. <div class="mdetail-params">
|
|
|
237 |
<strong>Parameters:</strong>
|
|
|
238 |
<ul><li><code>startRow</code> : Number<div class="sub-desc">The index of the first row in the range</div></li><li><code>endRow</code> : Number<div class="sub-desc">The index of the last row in the range</div></li> </ul>
|
|
|
239 |
<strong>Returns:</strong>
|
|
|
240 |
<ul>
|
|
|
241 |
<li><code>void</code></li>
|
|
|
242 |
</ul>
|
|
|
243 |
</div>
|
|
|
244 |
</div>
|
|
|
245 |
</div>
|
|
|
246 |
</td>
|
|
|
247 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#deselectRange" href="output/Ext.grid.RowSelectionModel.html#deselectRange">RowSelectionModel</a></td>
|
|
|
248 |
</tr>
|
|
|
249 |
<tr class="method-row inherited alt expandable">
|
|
|
250 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
251 |
<td class="sig">
|
|
|
252 |
<a id="Ext.grid.CheckboxSelectionModel-deselectRow"></a>
|
|
|
253 |
<b>deselectRow</b>( <code>Number row</code> ) : void <div class="mdesc">
|
|
|
254 |
<div class="short">Deselects a row.</div>
|
|
|
255 |
<div class="long">
|
|
|
256 |
Deselects a row. <div class="mdetail-params">
|
|
|
257 |
<strong>Parameters:</strong>
|
|
|
258 |
<ul><li><code>row</code> : Number<div class="sub-desc">The index of the row to deselect</div></li> </ul>
|
|
|
259 |
<strong>Returns:</strong>
|
|
|
260 |
<ul>
|
|
|
261 |
<li><code>void</code></li>
|
|
|
262 |
</ul>
|
|
|
263 |
</div>
|
|
|
264 |
</div>
|
|
|
265 |
</div>
|
|
|
266 |
</td>
|
|
|
267 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#deselectRow" href="output/Ext.grid.RowSelectionModel.html#deselectRow">RowSelectionModel</a></td>
|
|
|
268 |
</tr>
|
|
|
269 |
<tr class="method-row inherited expandable">
|
|
|
270 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
271 |
<td class="sig">
|
|
|
272 |
<a id="Ext.grid.CheckboxSelectionModel-each"></a>
|
|
|
273 |
<b>each</b>( <code>Function fn</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : Boolean <div class="mdesc">
|
|
|
274 |
<div class="short">Calls the passed function with each selection. If the function returns false, iteration is
|
|
|
275 |
stopped and this function ...</div>
|
|
|
276 |
<div class="long">
|
|
|
277 |
Calls the passed function with each selection. If the function returns false, iteration is
|
|
|
278 |
stopped and this function returns false. Otherwise it returns true. <div class="mdetail-params">
|
|
|
279 |
<strong>Parameters:</strong>
|
|
|
280 |
<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>
|
|
|
281 |
<strong>Returns:</strong>
|
|
|
282 |
<ul>
|
|
|
283 |
<li><code>Boolean</code><div class="sub-desc">true if all selections were iterated</div></li>
|
|
|
284 |
</ul>
|
|
|
285 |
</div>
|
|
|
286 |
</div>
|
|
|
287 |
</div>
|
|
|
288 |
</td>
|
|
|
289 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#each" href="output/Ext.grid.RowSelectionModel.html#each">RowSelectionModel</a></td>
|
|
|
290 |
</tr>
|
|
|
291 |
<tr class="method-row inherited alt expandable">
|
|
|
292 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
293 |
<td class="sig">
|
|
|
294 |
<a id="Ext.grid.CheckboxSelectionModel-fireEvent"></a>
|
|
|
295 |
<b>fireEvent</b>( <code>String eventName</code>, <code>Object... args</code> ) : Boolean <div class="mdesc">
|
|
|
296 |
<div class="short">Fires the specified event with the passed parameters (minus the event name).</div>
|
|
|
297 |
<div class="long">
|
|
|
298 |
Fires the specified event with the passed parameters (minus the event name). <div class="mdetail-params">
|
|
|
299 |
<strong>Parameters:</strong>
|
|
|
300 |
<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>
|
|
|
301 |
<strong>Returns:</strong>
|
|
|
302 |
<ul>
|
|
|
303 |
<li><code>Boolean</code><div class="sub-desc">returns false if any of the handlers return false otherwise it returns true</div></li>
|
|
|
304 |
</ul>
|
|
|
305 |
</div>
|
|
|
306 |
</div>
|
|
|
307 |
</div>
|
|
|
308 |
</td>
|
|
|
309 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#fireEvent" href="output/Ext.util.Observable.html#fireEvent">Observable</a></td>
|
|
|
310 |
</tr>
|
|
|
311 |
<tr class="method-row inherited expandable">
|
|
|
312 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
313 |
<td class="sig">
|
|
|
314 |
<a id="Ext.grid.CheckboxSelectionModel-getCount"></a>
|
|
|
315 |
<b>getCount</b>() : Number <div class="mdesc">
|
|
|
316 |
<div class="short">Gets the number of selected rows.</div>
|
|
|
317 |
<div class="long">
|
|
|
318 |
Gets the number of selected rows. <div class="mdetail-params">
|
|
|
319 |
<strong>Parameters:</strong>
|
|
|
320 |
<ul><li>None.</li> </ul>
|
|
|
321 |
<strong>Returns:</strong>
|
|
|
322 |
<ul>
|
|
|
323 |
<li><code>Number</code></li>
|
|
|
324 |
</ul>
|
|
|
325 |
</div>
|
|
|
326 |
</div>
|
|
|
327 |
</div>
|
|
|
328 |
</td>
|
|
|
329 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#getCount" href="output/Ext.grid.RowSelectionModel.html#getCount">RowSelectionModel</a></td>
|
|
|
330 |
</tr>
|
|
|
331 |
<tr class="method-row inherited alt expandable">
|
|
|
332 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
333 |
<td class="sig">
|
|
|
334 |
<a id="Ext.grid.CheckboxSelectionModel-getSelected"></a>
|
|
|
335 |
<b>getSelected</b>() : Record <div class="mdesc">
|
|
|
336 |
<div class="short">Returns the first selected record.</div>
|
|
|
337 |
<div class="long">
|
|
|
338 |
Returns the first selected record. <div class="mdetail-params">
|
|
|
339 |
<strong>Parameters:</strong>
|
|
|
340 |
<ul><li>None.</li> </ul>
|
|
|
341 |
<strong>Returns:</strong>
|
|
|
342 |
<ul>
|
|
|
343 |
<li><code>Record</code></li>
|
|
|
344 |
</ul>
|
|
|
345 |
</div>
|
|
|
346 |
</div>
|
|
|
347 |
</div>
|
|
|
348 |
</td>
|
|
|
349 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#getSelected" href="output/Ext.grid.RowSelectionModel.html#getSelected">RowSelectionModel</a></td>
|
|
|
350 |
</tr>
|
|
|
351 |
<tr class="method-row inherited expandable">
|
|
|
352 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
353 |
<td class="sig">
|
|
|
354 |
<a id="Ext.grid.CheckboxSelectionModel-getSelections"></a>
|
|
|
355 |
<b>getSelections</b>() : Array <div class="mdesc">
|
|
|
356 |
<div class="short">Returns the selected records</div>
|
|
|
357 |
<div class="long">
|
|
|
358 |
Returns the selected records <div class="mdetail-params">
|
|
|
359 |
<strong>Parameters:</strong>
|
|
|
360 |
<ul><li>None.</li> </ul>
|
|
|
361 |
<strong>Returns:</strong>
|
|
|
362 |
<ul>
|
|
|
363 |
<li><code>Array</code><div class="sub-desc">Array of selected records</div></li>
|
|
|
364 |
</ul>
|
|
|
365 |
</div>
|
|
|
366 |
</div>
|
|
|
367 |
</div>
|
|
|
368 |
</td>
|
|
|
369 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#getSelections" href="output/Ext.grid.RowSelectionModel.html#getSelections">RowSelectionModel</a></td>
|
|
|
370 |
</tr>
|
|
|
371 |
<tr class="method-row inherited alt expandable">
|
|
|
372 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
373 |
<td class="sig">
|
|
|
374 |
<a id="Ext.grid.CheckboxSelectionModel-hasListener"></a>
|
|
|
375 |
<b>hasListener</b>( <code>String eventName</code> ) : Boolean <div class="mdesc">
|
|
|
376 |
<div class="short">Checks to see if this object has any listeners for a specified event</div>
|
|
|
377 |
<div class="long">
|
|
|
378 |
Checks to see if this object has any listeners for a specified event <div class="mdetail-params">
|
|
|
379 |
<strong>Parameters:</strong>
|
|
|
380 |
<ul><li><code>eventName</code> : String<div class="sub-desc">The name of the event to check for</div></li> </ul>
|
|
|
381 |
<strong>Returns:</strong>
|
|
|
382 |
<ul>
|
|
|
383 |
<li><code>Boolean</code><div class="sub-desc">True if the event is being listened for, else false</div></li>
|
|
|
384 |
</ul>
|
|
|
385 |
</div>
|
|
|
386 |
</div>
|
|
|
387 |
</div>
|
|
|
388 |
</td>
|
|
|
389 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#hasListener" href="output/Ext.util.Observable.html#hasListener">Observable</a></td>
|
|
|
390 |
</tr>
|
|
|
391 |
<tr class="method-row inherited expandable">
|
|
|
392 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
393 |
<td class="sig">
|
|
|
394 |
<a id="Ext.grid.CheckboxSelectionModel-hasNext"></a>
|
|
|
395 |
<b>hasNext</b>() : Boolean <div class="mdesc">
|
|
|
396 |
<div class="short">Returns true if there is a next record to select</div>
|
|
|
397 |
<div class="long">
|
|
|
398 |
Returns true if there is a next record to select <div class="mdetail-params">
|
|
|
399 |
<strong>Parameters:</strong>
|
|
|
400 |
<ul><li>None.</li> </ul>
|
|
|
401 |
<strong>Returns:</strong>
|
|
|
402 |
<ul>
|
|
|
403 |
<li><code>Boolean</code></li>
|
|
|
404 |
</ul>
|
|
|
405 |
</div>
|
|
|
406 |
</div>
|
|
|
407 |
</div>
|
|
|
408 |
</td>
|
|
|
409 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#hasNext" href="output/Ext.grid.RowSelectionModel.html#hasNext">RowSelectionModel</a></td>
|
|
|
410 |
</tr>
|
|
|
411 |
<tr class="method-row inherited alt expandable">
|
|
|
412 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
413 |
<td class="sig">
|
|
|
414 |
<a id="Ext.grid.CheckboxSelectionModel-hasPrevious"></a>
|
|
|
415 |
<b>hasPrevious</b>() : Boolean <div class="mdesc">
|
|
|
416 |
<div class="short">Returns true if there is a previous record to select</div>
|
|
|
417 |
<div class="long">
|
|
|
418 |
Returns true if there is a previous record to select <div class="mdetail-params">
|
|
|
419 |
<strong>Parameters:</strong>
|
|
|
420 |
<ul><li>None.</li> </ul>
|
|
|
421 |
<strong>Returns:</strong>
|
|
|
422 |
<ul>
|
|
|
423 |
<li><code>Boolean</code></li>
|
|
|
424 |
</ul>
|
|
|
425 |
</div>
|
|
|
426 |
</div>
|
|
|
427 |
</div>
|
|
|
428 |
</td>
|
|
|
429 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#hasPrevious" href="output/Ext.grid.RowSelectionModel.html#hasPrevious">RowSelectionModel</a></td>
|
|
|
430 |
</tr>
|
|
|
431 |
<tr class="method-row inherited expandable">
|
|
|
432 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
433 |
<td class="sig">
|
|
|
434 |
<a id="Ext.grid.CheckboxSelectionModel-hasSelection"></a>
|
|
|
435 |
<b>hasSelection</b>() : Boolean <div class="mdesc">
|
|
|
436 |
<div class="short">Returns True if there is a selection.</div>
|
|
|
437 |
<div class="long">
|
|
|
438 |
Returns True if there is a selection. <div class="mdetail-params">
|
|
|
439 |
<strong>Parameters:</strong>
|
|
|
440 |
<ul><li>None.</li> </ul>
|
|
|
441 |
<strong>Returns:</strong>
|
|
|
442 |
<ul>
|
|
|
443 |
<li><code>Boolean</code></li>
|
|
|
444 |
</ul>
|
|
|
445 |
</div>
|
|
|
446 |
</div>
|
|
|
447 |
</div>
|
|
|
448 |
</td>
|
|
|
449 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#hasSelection" href="output/Ext.grid.RowSelectionModel.html#hasSelection">RowSelectionModel</a></td>
|
|
|
450 |
</tr>
|
|
|
451 |
<tr class="method-row inherited alt expandable">
|
|
|
452 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
453 |
<td class="sig">
|
|
|
454 |
<a id="Ext.grid.CheckboxSelectionModel-isIdSelected"></a>
|
|
|
455 |
<b>isIdSelected</b>( <code>String id</code> ) : Boolean <div class="mdesc">
|
|
|
456 |
<div class="short">Returns True if the specified record id is selected.</div>
|
|
|
457 |
<div class="long">
|
|
|
458 |
Returns True if the specified record id is selected. <div class="mdetail-params">
|
|
|
459 |
<strong>Parameters:</strong>
|
|
|
460 |
<ul><li><code>id</code> : String<div class="sub-desc">The id of record to check</div></li> </ul>
|
|
|
461 |
<strong>Returns:</strong>
|
|
|
462 |
<ul>
|
|
|
463 |
<li><code>Boolean</code></li>
|
|
|
464 |
</ul>
|
|
|
465 |
</div>
|
|
|
466 |
</div>
|
|
|
467 |
</div>
|
|
|
468 |
</td>
|
|
|
469 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#isIdSelected" href="output/Ext.grid.RowSelectionModel.html#isIdSelected">RowSelectionModel</a></td>
|
|
|
470 |
</tr>
|
|
|
471 |
<tr class="method-row inherited expandable">
|
|
|
472 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
473 |
<td class="sig">
|
|
|
474 |
<a id="Ext.grid.CheckboxSelectionModel-isLocked"></a>
|
|
|
475 |
<b>isLocked</b>() : Boolean <div class="mdesc">
|
|
|
476 |
<div class="short">Returns true if the selections are locked.</div>
|
|
|
477 |
<div class="long">
|
|
|
478 |
Returns true if the selections are locked. <div class="mdetail-params">
|
|
|
479 |
<strong>Parameters:</strong>
|
|
|
480 |
<ul><li>None.</li> </ul>
|
|
|
481 |
<strong>Returns:</strong>
|
|
|
482 |
<ul>
|
|
|
483 |
<li><code>Boolean</code></li>
|
|
|
484 |
</ul>
|
|
|
485 |
</div>
|
|
|
486 |
</div>
|
|
|
487 |
</div>
|
|
|
488 |
</td>
|
|
|
489 |
<td class="msource"><a ext:cls="Ext.grid.AbstractSelectionModel" ext:member="#isLocked" href="output/Ext.grid.AbstractSelectionModel.html#isLocked">AbstractSelectionModel</a></td>
|
|
|
490 |
</tr>
|
|
|
491 |
<tr class="method-row inherited alt expandable">
|
|
|
492 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
493 |
<td class="sig">
|
|
|
494 |
<a id="Ext.grid.CheckboxSelectionModel-isSelected"></a>
|
|
|
495 |
<b>isSelected</b>( <code>Number/Record record</code> ) : Boolean <div class="mdesc">
|
|
|
496 |
<div class="short">Returns True if the specified row is selected.</div>
|
|
|
497 |
<div class="long">
|
|
|
498 |
Returns True if the specified row is selected. <div class="mdetail-params">
|
|
|
499 |
<strong>Parameters:</strong>
|
|
|
500 |
<ul><li><code>record</code> : Number/Record<div class="sub-desc">The record or index of the record to check</div></li> </ul>
|
|
|
501 |
<strong>Returns:</strong>
|
|
|
502 |
<ul>
|
|
|
503 |
<li><code>Boolean</code></li>
|
|
|
504 |
</ul>
|
|
|
505 |
</div>
|
|
|
506 |
</div>
|
|
|
507 |
</div>
|
|
|
508 |
</td>
|
|
|
509 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#isSelected" href="output/Ext.grid.RowSelectionModel.html#isSelected">RowSelectionModel</a></td>
|
|
|
510 |
</tr>
|
|
|
511 |
<tr class="method-row inherited expandable">
|
|
|
512 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
513 |
<td class="sig">
|
|
|
514 |
<a id="Ext.grid.CheckboxSelectionModel-lock"></a>
|
|
|
515 |
<b>lock</b>() : void <div class="mdesc">
|
|
|
516 |
<div class="short">Locks the selections.</div>
|
|
|
517 |
<div class="long">
|
|
|
518 |
Locks the selections. <div class="mdetail-params">
|
|
|
519 |
<strong>Parameters:</strong>
|
|
|
520 |
<ul><li>None.</li> </ul>
|
|
|
521 |
<strong>Returns:</strong>
|
|
|
522 |
<ul>
|
|
|
523 |
<li><code>void</code></li>
|
|
|
524 |
</ul>
|
|
|
525 |
</div>
|
|
|
526 |
</div>
|
|
|
527 |
</div>
|
|
|
528 |
</td>
|
|
|
529 |
<td class="msource"><a ext:cls="Ext.grid.AbstractSelectionModel" ext:member="#lock" href="output/Ext.grid.AbstractSelectionModel.html#lock">AbstractSelectionModel</a></td>
|
|
|
530 |
</tr>
|
|
|
531 |
<tr class="method-row inherited alt expandable">
|
|
|
532 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
533 |
<td class="sig">
|
|
|
534 |
<a id="Ext.grid.CheckboxSelectionModel-on"></a>
|
|
|
535 |
<b>on</b>( <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> ) : void <div class="mdesc">
|
|
|
536 |
<div class="short">Appends an event handler to this element (shorthand for addListener)</div>
|
|
|
537 |
<div class="long">
|
|
|
538 |
Appends an event handler to this element (shorthand for addListener) <div class="mdetail-params">
|
|
|
539 |
<strong>Parameters:</strong>
|
|
|
540 |
<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
|
|
|
541 |
function. The handler function's "this" context.</div></li><li><code>options</code> : Object<div class="sub-desc">(optional)</div></li> </ul>
|
|
|
542 |
<strong>Returns:</strong>
|
|
|
543 |
<ul>
|
|
|
544 |
<li><code>void</code></li>
|
|
|
545 |
</ul>
|
|
|
546 |
</div>
|
|
|
547 |
</div>
|
|
|
548 |
</div>
|
|
|
549 |
</td>
|
|
|
550 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#on" href="output/Ext.util.Observable.html#on">Observable</a></td>
|
|
|
551 |
</tr>
|
|
|
552 |
<tr class="method-row inherited expandable">
|
|
|
553 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
554 |
<td class="sig">
|
|
|
555 |
<a id="Ext.grid.CheckboxSelectionModel-purgeListeners"></a>
|
|
|
556 |
<b>purgeListeners</b>() : void <div class="mdesc">
|
|
|
557 |
<div class="short">Removes all listeners for this object</div>
|
|
|
558 |
<div class="long">
|
|
|
559 |
Removes all listeners for this object <div class="mdetail-params">
|
|
|
560 |
<strong>Parameters:</strong>
|
|
|
561 |
<ul><li>None.</li> </ul>
|
|
|
562 |
<strong>Returns:</strong>
|
|
|
563 |
<ul>
|
|
|
564 |
<li><code>void</code></li>
|
|
|
565 |
</ul>
|
|
|
566 |
</div>
|
|
|
567 |
</div>
|
|
|
568 |
</div>
|
|
|
569 |
</td>
|
|
|
570 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#purgeListeners" href="output/Ext.util.Observable.html#purgeListeners">Observable</a></td>
|
|
|
571 |
</tr>
|
|
|
572 |
<tr class="method-row inherited alt expandable">
|
|
|
573 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
574 |
<td class="sig">
|
|
|
575 |
<a id="Ext.grid.CheckboxSelectionModel-removeListener"></a>
|
|
|
576 |
<b>removeListener</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc">
|
|
|
577 |
<div class="short">Removes a listener</div>
|
|
|
578 |
<div class="long">
|
|
|
579 |
Removes a listener <div class="mdetail-params">
|
|
|
580 |
<strong>Parameters:</strong>
|
|
|
581 |
<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>
|
|
|
582 |
<strong>Returns:</strong>
|
|
|
583 |
<ul>
|
|
|
584 |
<li><code>void</code></li>
|
|
|
585 |
</ul>
|
|
|
586 |
</div>
|
|
|
587 |
</div>
|
|
|
588 |
</div>
|
|
|
589 |
</td>
|
|
|
590 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#removeListener" href="output/Ext.util.Observable.html#removeListener">Observable</a></td>
|
|
|
591 |
</tr>
|
|
|
592 |
<tr class="method-row inherited expandable">
|
|
|
593 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
594 |
<td class="sig">
|
|
|
595 |
<a id="Ext.grid.CheckboxSelectionModel-resumeEvents"></a>
|
|
|
596 |
<b>resumeEvents</b>() : void <div class="mdesc">
|
|
|
597 |
<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>
|
|
|
598 |
<div class="long">
|
|
|
599 |
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">
|
|
|
600 |
<strong>Parameters:</strong>
|
|
|
601 |
<ul><li>None.</li> </ul>
|
|
|
602 |
<strong>Returns:</strong>
|
|
|
603 |
<ul>
|
|
|
604 |
<li><code>void</code></li>
|
|
|
605 |
</ul>
|
|
|
606 |
</div>
|
|
|
607 |
</div>
|
|
|
608 |
</div>
|
|
|
609 |
</td>
|
|
|
610 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#resumeEvents" href="output/Ext.util.Observable.html#resumeEvents">Observable</a></td>
|
|
|
611 |
</tr>
|
|
|
612 |
<tr class="method-row inherited alt expandable">
|
|
|
613 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
614 |
<td class="sig">
|
|
|
615 |
<a id="Ext.grid.CheckboxSelectionModel-selectAll"></a>
|
|
|
616 |
<b>selectAll</b>() : void <div class="mdesc">
|
|
|
617 |
<div class="short">Selects all rows.</div>
|
|
|
618 |
<div class="long">
|
|
|
619 |
Selects all rows. <div class="mdetail-params">
|
|
|
620 |
<strong>Parameters:</strong>
|
|
|
621 |
<ul><li>None.</li> </ul>
|
|
|
622 |
<strong>Returns:</strong>
|
|
|
623 |
<ul>
|
|
|
624 |
<li><code>void</code></li>
|
|
|
625 |
</ul>
|
|
|
626 |
</div>
|
|
|
627 |
</div>
|
|
|
628 |
</div>
|
|
|
629 |
</td>
|
|
|
630 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#selectAll" href="output/Ext.grid.RowSelectionModel.html#selectAll">RowSelectionModel</a></td>
|
|
|
631 |
</tr>
|
|
|
632 |
<tr class="method-row inherited expandable">
|
|
|
633 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
634 |
<td class="sig">
|
|
|
635 |
<a id="Ext.grid.CheckboxSelectionModel-selectFirstRow"></a>
|
|
|
636 |
<b>selectFirstRow</b>() : void <div class="mdesc">
|
|
|
637 |
<div class="short">Selects the first row in the grid.</div>
|
|
|
638 |
<div class="long">
|
|
|
639 |
Selects the first row in the grid. <div class="mdetail-params">
|
|
|
640 |
<strong>Parameters:</strong>
|
|
|
641 |
<ul><li>None.</li> </ul>
|
|
|
642 |
<strong>Returns:</strong>
|
|
|
643 |
<ul>
|
|
|
644 |
<li><code>void</code></li>
|
|
|
645 |
</ul>
|
|
|
646 |
</div>
|
|
|
647 |
</div>
|
|
|
648 |
</div>
|
|
|
649 |
</td>
|
|
|
650 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#selectFirstRow" href="output/Ext.grid.RowSelectionModel.html#selectFirstRow">RowSelectionModel</a></td>
|
|
|
651 |
</tr>
|
|
|
652 |
<tr class="method-row inherited alt expandable">
|
|
|
653 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
654 |
<td class="sig">
|
|
|
655 |
<a id="Ext.grid.CheckboxSelectionModel-selectLastRow"></a>
|
|
|
656 |
<b>selectLastRow</b>( <span class="optional" title="Optional">[<code>Boolean keepExisting</code>]</span> ) : void <div class="mdesc">
|
|
|
657 |
<div class="short">Select the last row.</div>
|
|
|
658 |
<div class="long">
|
|
|
659 |
Select the last row. <div class="mdetail-params">
|
|
|
660 |
<strong>Parameters:</strong>
|
|
|
661 |
<ul><li><code>keepExisting</code> : Boolean<div class="sub-desc">(optional) True to keep existing selections</div></li> </ul>
|
|
|
662 |
<strong>Returns:</strong>
|
|
|
663 |
<ul>
|
|
|
664 |
<li><code>void</code></li>
|
|
|
665 |
</ul>
|
|
|
666 |
</div>
|
|
|
667 |
</div>
|
|
|
668 |
</div>
|
|
|
669 |
</td>
|
|
|
670 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#selectLastRow" href="output/Ext.grid.RowSelectionModel.html#selectLastRow">RowSelectionModel</a></td>
|
|
|
671 |
</tr>
|
|
|
672 |
<tr class="method-row inherited expandable">
|
|
|
673 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
674 |
<td class="sig">
|
|
|
675 |
<a id="Ext.grid.CheckboxSelectionModel-selectNext"></a>
|
|
|
676 |
<b>selectNext</b>( <span class="optional" title="Optional">[<code>Boolean keepExisting</code>]</span> ) : Boolean <div class="mdesc">
|
|
|
677 |
<div class="short">Selects the row immediately following the last selected row.</div>
|
|
|
678 |
<div class="long">
|
|
|
679 |
Selects the row immediately following the last selected row. <div class="mdetail-params">
|
|
|
680 |
<strong>Parameters:</strong>
|
|
|
681 |
<ul><li><code>keepExisting</code> : Boolean<div class="sub-desc">(optional) True to keep existing selections</div></li> </ul>
|
|
|
682 |
<strong>Returns:</strong>
|
|
|
683 |
<ul>
|
|
|
684 |
<li><code>Boolean</code><div class="sub-desc">True if there is a next row, else false</div></li>
|
|
|
685 |
</ul>
|
|
|
686 |
</div>
|
|
|
687 |
</div>
|
|
|
688 |
</div>
|
|
|
689 |
</td>
|
|
|
690 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#selectNext" href="output/Ext.grid.RowSelectionModel.html#selectNext">RowSelectionModel</a></td>
|
|
|
691 |
</tr>
|
|
|
692 |
<tr class="method-row inherited alt expandable">
|
|
|
693 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
694 |
<td class="sig">
|
|
|
695 |
<a id="Ext.grid.CheckboxSelectionModel-selectPrevious"></a>
|
|
|
696 |
<b>selectPrevious</b>( <span class="optional" title="Optional">[<code>Boolean keepExisting</code>]</span> ) : Boolean <div class="mdesc">
|
|
|
697 |
<div class="short">Selects the row that precedes the last selected row.</div>
|
|
|
698 |
<div class="long">
|
|
|
699 |
Selects the row that precedes the last selected row. <div class="mdetail-params">
|
|
|
700 |
<strong>Parameters:</strong>
|
|
|
701 |
<ul><li><code>keepExisting</code> : Boolean<div class="sub-desc">(optional) True to keep existing selections</div></li> </ul>
|
|
|
702 |
<strong>Returns:</strong>
|
|
|
703 |
<ul>
|
|
|
704 |
<li><code>Boolean</code><div class="sub-desc">True if there is a previous row, else false</div></li>
|
|
|
705 |
</ul>
|
|
|
706 |
</div>
|
|
|
707 |
</div>
|
|
|
708 |
</div>
|
|
|
709 |
</td>
|
|
|
710 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#selectPrevious" href="output/Ext.grid.RowSelectionModel.html#selectPrevious">RowSelectionModel</a></td>
|
|
|
711 |
</tr>
|
|
|
712 |
<tr class="method-row inherited expandable">
|
|
|
713 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
714 |
<td class="sig">
|
|
|
715 |
<a id="Ext.grid.CheckboxSelectionModel-selectRange"></a>
|
|
|
716 |
<b>selectRange</b>( <code>Number startRow</code>, <code>Number endRow</code>, <span class="optional" title="Optional">[<code>Boolean keepExisting</code>]</span> ) : void <div class="mdesc">
|
|
|
717 |
<div class="short">Selects a range of rows. All rows in between startRow and endRow are also selected.</div>
|
|
|
718 |
<div class="long">
|
|
|
719 |
Selects a range of rows. All rows in between startRow and endRow are also selected. <div class="mdetail-params">
|
|
|
720 |
<strong>Parameters:</strong>
|
|
|
721 |
<ul><li><code>startRow</code> : Number<div class="sub-desc">The index of the first row in the range</div></li><li><code>endRow</code> : Number<div class="sub-desc">The index of the last row in the range</div></li><li><code>keepExisting</code> : Boolean<div class="sub-desc">(optional) True to retain existing selections</div></li> </ul>
|
|
|
722 |
<strong>Returns:</strong>
|
|
|
723 |
<ul>
|
|
|
724 |
<li><code>void</code></li>
|
|
|
725 |
</ul>
|
|
|
726 |
</div>
|
|
|
727 |
</div>
|
|
|
728 |
</div>
|
|
|
729 |
</td>
|
|
|
730 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#selectRange" href="output/Ext.grid.RowSelectionModel.html#selectRange">RowSelectionModel</a></td>
|
|
|
731 |
</tr>
|
|
|
732 |
<tr class="method-row inherited alt expandable">
|
|
|
733 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
734 |
<td class="sig">
|
|
|
735 |
<a id="Ext.grid.CheckboxSelectionModel-selectRecords"></a>
|
|
|
736 |
<b>selectRecords</b>( <code>Array records</code>, <span class="optional" title="Optional">[<code>Boolean keepExisting</code>]</span> ) : void <div class="mdesc">
|
|
|
737 |
<div class="short">Select records.</div>
|
|
|
738 |
<div class="long">
|
|
|
739 |
Select records. <div class="mdetail-params">
|
|
|
740 |
<strong>Parameters:</strong>
|
|
|
741 |
<ul><li><code>records</code> : Array<div class="sub-desc">The records to select</div></li><li><code>keepExisting</code> : Boolean<div class="sub-desc">(optional) True to keep existing selections</div></li> </ul>
|
|
|
742 |
<strong>Returns:</strong>
|
|
|
743 |
<ul>
|
|
|
744 |
<li><code>void</code></li>
|
|
|
745 |
</ul>
|
|
|
746 |
</div>
|
|
|
747 |
</div>
|
|
|
748 |
</div>
|
|
|
749 |
</td>
|
|
|
750 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#selectRecords" href="output/Ext.grid.RowSelectionModel.html#selectRecords">RowSelectionModel</a></td>
|
|
|
751 |
</tr>
|
|
|
752 |
<tr class="method-row inherited expandable">
|
|
|
753 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
754 |
<td class="sig">
|
|
|
755 |
<a id="Ext.grid.CheckboxSelectionModel-selectRow"></a>
|
|
|
756 |
<b>selectRow</b>( <code>Number row</code>, <span class="optional" title="Optional">[<code>Boolean keepExisting</code>]</span> ) : void <div class="mdesc">
|
|
|
757 |
<div class="short">Selects a row.</div>
|
|
|
758 |
<div class="long">
|
|
|
759 |
Selects a row. <div class="mdetail-params">
|
|
|
760 |
<strong>Parameters:</strong>
|
|
|
761 |
<ul><li><code>row</code> : Number<div class="sub-desc">The index of the row to select</div></li><li><code>keepExisting</code> : Boolean<div class="sub-desc">(optional) True to keep existing selections</div></li> </ul>
|
|
|
762 |
<strong>Returns:</strong>
|
|
|
763 |
<ul>
|
|
|
764 |
<li><code>void</code></li>
|
|
|
765 |
</ul>
|
|
|
766 |
</div>
|
|
|
767 |
</div>
|
|
|
768 |
</div>
|
|
|
769 |
</td>
|
|
|
770 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#selectRow" href="output/Ext.grid.RowSelectionModel.html#selectRow">RowSelectionModel</a></td>
|
|
|
771 |
</tr>
|
|
|
772 |
<tr class="method-row inherited alt expandable">
|
|
|
773 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
774 |
<td class="sig">
|
|
|
775 |
<a id="Ext.grid.CheckboxSelectionModel-selectRows"></a>
|
|
|
776 |
<b>selectRows</b>( <code>Array rows</code>, <span class="optional" title="Optional">[<code>Boolean keepExisting</code>]</span> ) : void <div class="mdesc">
|
|
|
777 |
<div class="short">Selects multiple rows.</div>
|
|
|
778 |
<div class="long">
|
|
|
779 |
Selects multiple rows. <div class="mdetail-params">
|
|
|
780 |
<strong>Parameters:</strong>
|
|
|
781 |
<ul><li><code>rows</code> : Array<div class="sub-desc">Array of the indexes of the row to select</div></li><li><code>keepExisting</code> : Boolean<div class="sub-desc">(optional) True to keep existing selections (defaults to false)</div></li> </ul>
|
|
|
782 |
<strong>Returns:</strong>
|
|
|
783 |
<ul>
|
|
|
784 |
<li><code>void</code></li>
|
|
|
785 |
</ul>
|
|
|
786 |
</div>
|
|
|
787 |
</div>
|
|
|
788 |
</div>
|
|
|
789 |
</td>
|
|
|
790 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#selectRows" href="output/Ext.grid.RowSelectionModel.html#selectRows">RowSelectionModel</a></td>
|
|
|
791 |
</tr>
|
|
|
792 |
<tr class="method-row inherited expandable">
|
|
|
793 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
794 |
<td class="sig">
|
|
|
795 |
<a id="Ext.grid.CheckboxSelectionModel-suspendEvents"></a>
|
|
|
796 |
<b>suspendEvents</b>() : void <div class="mdesc">
|
|
|
797 |
<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>
|
|
|
798 |
<div class="long">
|
|
|
799 |
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">
|
|
|
800 |
<strong>Parameters:</strong>
|
|
|
801 |
<ul><li>None.</li> </ul>
|
|
|
802 |
<strong>Returns:</strong>
|
|
|
803 |
<ul>
|
|
|
804 |
<li><code>void</code></li>
|
|
|
805 |
</ul>
|
|
|
806 |
</div>
|
|
|
807 |
</div>
|
|
|
808 |
</div>
|
|
|
809 |
</td>
|
|
|
810 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#suspendEvents" href="output/Ext.util.Observable.html#suspendEvents">Observable</a></td>
|
|
|
811 |
</tr>
|
|
|
812 |
<tr class="method-row inherited alt expandable">
|
|
|
813 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
814 |
<td class="sig">
|
|
|
815 |
<a id="Ext.grid.CheckboxSelectionModel-un"></a>
|
|
|
816 |
<b>un</b>( <code>String eventName</code>, <code>Function handler</code>, <span class="optional" title="Optional">[<code>Object scope</code>]</span> ) : void <div class="mdesc">
|
|
|
817 |
<div class="short">Removes a listener (shorthand for removeListener)</div>
|
|
|
818 |
<div class="long">
|
|
|
819 |
Removes a listener (shorthand for removeListener) <div class="mdetail-params">
|
|
|
820 |
<strong>Parameters:</strong>
|
|
|
821 |
<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>
|
|
|
822 |
<strong>Returns:</strong>
|
|
|
823 |
<ul>
|
|
|
824 |
<li><code>void</code></li>
|
|
|
825 |
</ul>
|
|
|
826 |
</div>
|
|
|
827 |
</div>
|
|
|
828 |
</div>
|
|
|
829 |
</td>
|
|
|
830 |
<td class="msource"><a ext:cls="Ext.util.Observable" ext:member="#un" href="output/Ext.util.Observable.html#un">Observable</a></td>
|
|
|
831 |
</tr>
|
|
|
832 |
<tr class="method-row inherited expandable">
|
|
|
833 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
834 |
<td class="sig">
|
|
|
835 |
<a id="Ext.grid.CheckboxSelectionModel-unlock"></a>
|
|
|
836 |
<b>unlock</b>() : void <div class="mdesc">
|
|
|
837 |
<div class="short">Unlocks the selections.</div>
|
|
|
838 |
<div class="long">
|
|
|
839 |
Unlocks the selections. <div class="mdetail-params">
|
|
|
840 |
<strong>Parameters:</strong>
|
|
|
841 |
<ul><li>None.</li> </ul>
|
|
|
842 |
<strong>Returns:</strong>
|
|
|
843 |
<ul>
|
|
|
844 |
<li><code>void</code></li>
|
|
|
845 |
</ul>
|
|
|
846 |
</div>
|
|
|
847 |
</div>
|
|
|
848 |
</div>
|
|
|
849 |
</td>
|
|
|
850 |
<td class="msource"><a ext:cls="Ext.grid.AbstractSelectionModel" ext:member="#unlock" href="output/Ext.grid.AbstractSelectionModel.html#unlock">AbstractSelectionModel</a></td>
|
|
|
851 |
</tr>
|
|
|
852 |
</table>
|
|
|
853 |
<a id="Ext.grid.CheckboxSelectionModel-events"></a>
|
|
|
854 |
<h2>Public Events</h2>
|
|
|
855 |
<table cellspacing="0" class="member-table">
|
|
|
856 |
<tr>
|
|
|
857 |
<th class="sig-header" colspan="2">Event</th>
|
|
|
858 |
<th class="msource-header">Defined By</th>
|
|
|
859 |
</tr>
|
|
|
860 |
<tr class="event-row inherited expandable">
|
|
|
861 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
862 |
<td class="sig">
|
|
|
863 |
<a id="Ext.grid.CheckboxSelectionModel-beforerowselect"></a>
|
|
|
864 |
<b>beforerowselect</b> : ( <code>SelectionModel this</code>, <code>Number rowIndex</code>, <code>Boolean keepExisting</code>, <code>Record record</code> ) <div class="mdesc">
|
|
|
865 |
<div class="short">Fires when a row is being selected, return false to cancel.</div>
|
|
|
866 |
<div class="long">
|
|
|
867 |
Fires when a row is being selected, return false to cancel. <div class="mdetail-params">
|
|
|
868 |
<strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
|
|
|
869 |
<ul><li><code>this</code> : SelectionModel<div class="sub-desc"></div></li><li><code>rowIndex</code> : Number<div class="sub-desc">The index to be selected</div></li><li><code>keepExisting</code> : Boolean<div class="sub-desc">False if other selections will be cleared</div></li><li><code>record</code> : Record<div class="sub-desc">The record to be selected</div></li> </ul>
|
|
|
870 |
</div>
|
|
|
871 |
</div>
|
|
|
872 |
</div>
|
|
|
873 |
</td>
|
|
|
874 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#event-beforerowselect" href="output/Ext.grid.RowSelectionModel.html#event-beforerowselect">RowSelectionModel</a></td>
|
|
|
875 |
</tr>
|
|
|
876 |
<tr class="event-row inherited alt expandable">
|
|
|
877 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
878 |
<td class="sig">
|
|
|
879 |
<a id="Ext.grid.CheckboxSelectionModel-rowdeselect"></a>
|
|
|
880 |
<b>rowdeselect</b> : ( <code>SelectionModel this</code>, <code>Number rowIndex</code>, <code>Record record</code> ) <div class="mdesc">
|
|
|
881 |
<div class="short">Fires when a row is deselected.</div>
|
|
|
882 |
<div class="long">
|
|
|
883 |
Fires when a row is deselected. <div class="mdetail-params">
|
|
|
884 |
<strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
|
|
|
885 |
<ul><li><code>this</code> : SelectionModel<div class="sub-desc"></div></li><li><code>rowIndex</code> : Number<div class="sub-desc"></div></li><li><code>record</code> : Record<div class="sub-desc"></div></li> </ul>
|
|
|
886 |
</div>
|
|
|
887 |
</div>
|
|
|
888 |
</div>
|
|
|
889 |
</td>
|
|
|
890 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#event-rowdeselect" href="output/Ext.grid.RowSelectionModel.html#event-rowdeselect">RowSelectionModel</a></td>
|
|
|
891 |
</tr>
|
|
|
892 |
<tr class="event-row inherited expandable">
|
|
|
893 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
894 |
<td class="sig">
|
|
|
895 |
<a id="Ext.grid.CheckboxSelectionModel-rowselect"></a>
|
|
|
896 |
<b>rowselect</b> : ( <code>SelectionModel this</code>, <code>Number rowIndex</code>, <code>Ext.data.Record r</code> ) <div class="mdesc">
|
|
|
897 |
<div class="short">Fires when a row is selected.</div>
|
|
|
898 |
<div class="long">
|
|
|
899 |
Fires when a row is selected. <div class="mdetail-params">
|
|
|
900 |
<strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
|
|
|
901 |
<ul><li><code>this</code> : SelectionModel<div class="sub-desc"></div></li><li><code>rowIndex</code> : Number<div class="sub-desc">The selected index</div></li><li><code>r</code> : Ext.data.Record<div class="sub-desc">The selected record</div></li> </ul>
|
|
|
902 |
</div>
|
|
|
903 |
</div>
|
|
|
904 |
</div>
|
|
|
905 |
</td>
|
|
|
906 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#event-rowselect" href="output/Ext.grid.RowSelectionModel.html#event-rowselect">RowSelectionModel</a></td>
|
|
|
907 |
</tr>
|
|
|
908 |
<tr class="event-row inherited alt expandable">
|
|
|
909 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
910 |
<td class="sig">
|
|
|
911 |
<a id="Ext.grid.CheckboxSelectionModel-selectionchange"></a>
|
|
|
912 |
<b>selectionchange</b> : ( <code>SelectionModel this</code> ) <div class="mdesc">
|
|
|
913 |
<div class="short">Fires when the selection changes</div>
|
|
|
914 |
<div class="long">
|
|
|
915 |
Fires when the selection changes <div class="mdetail-params">
|
|
|
916 |
<strong style="font-weight:normal;">Listeners will be called with the following arguments:</strong>
|
|
|
917 |
<ul><li><code>this</code> : SelectionModel<div class="sub-desc"></div></li> </ul>
|
|
|
918 |
</div>
|
|
|
919 |
</div>
|
|
|
920 |
</div>
|
|
|
921 |
</td>
|
|
|
922 |
<td class="msource"><a ext:cls="Ext.grid.RowSelectionModel" ext:member="#event-selectionchange" href="output/Ext.grid.RowSelectionModel.html#event-selectionchange">RowSelectionModel</a></td>
|
|
|
923 |
</tr>
|
|
|
924 |
</table>
|
|
|
925 |
|
|
|
926 |
</div>
|