2 |
aperonnet |
1 |
<div class="body-wrap">
|
|
|
2 |
<div class="top-tools">
|
|
|
3 |
<a class="inner-link" href="#Ext.Action-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
|
|
|
4 |
<a class="inner-link" href="#Ext.Action-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
|
|
|
5 |
<a class="inner-link" href="#Ext.Action-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
|
|
|
6 |
<a class="inner-link" href="#Ext.Action-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
|
|
|
7 |
<a class="bookmark" href="../docs/?class=Ext.Action"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
|
|
|
8 |
</div>
|
|
|
9 |
<h1>Class Ext.Action</h1>
|
|
|
10 |
<table cellspacing="0">
|
|
|
11 |
<tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr>
|
|
|
12 |
<tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/widgets/Action.js" target="_blank">Action.js</a></td></tr>
|
|
|
13 |
<tr><td class="label">Class:</td><td class="hd-info">Action</td></tr>
|
|
|
14 |
<tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>
|
|
|
15 |
</table>
|
|
|
16 |
<div class="description">
|
|
|
17 |
<p>An Action is a piece of reusable functionality that can be abstracted out of any particular component so that it
|
|
|
18 |
can be usefully shared among multiple components. Actions let you share handlers, configuration options and UI
|
|
|
19 |
updates across any components that support the Action interface (primarily <a ext:cls="Ext.Toolbar" href="output/Ext.Toolbar.html">Ext.Toolbar</a>, <a ext:cls="Ext.Button" href="output/Ext.Button.html">Ext.Button</a>
|
|
|
20 |
and <a ext:cls="Ext.menu.Menu" href="output/Ext.menu.Menu.html">Ext.menu.Menu</a> components).</p>
|
|
|
21 |
<p>Aside from supporting the config object interface, any component that needs to use Actions must also support
|
|
|
22 |
the following method list, as these will be called as needed by the Action class: setText(string), setIconCls(string),
|
|
|
23 |
setDisabled(boolean), setVisible(boolean) and setHandler(function).</p>
|
|
|
24 |
Example usage:<br>
|
|
|
25 |
<pre><code><i>// Define the shared action. Each component below will have the same</i>
|
|
|
26 |
<i>// display text and icon, and will display the same message on click.</i>
|
|
|
27 |
<b>var</b> action = <b>new</b> Ext.Action({
|
|
|
28 |
text: <em>'Do something'</em>,
|
|
|
29 |
handler: <b>function</b>(){
|
|
|
30 |
Ext.Msg.alert(<em>'Click'</em>, <em>'You did something.'</em>);
|
|
|
31 |
},
|
|
|
32 |
iconCls: <em>'<b>do</b>-something'</em>
|
|
|
33 |
});
|
|
|
34 |
|
|
|
35 |
<b>var</b> panel = <b>new</b> Ext.Panel({
|
|
|
36 |
title: <em>'Actions'</em>,
|
|
|
37 |
width:500,
|
|
|
38 |
height:300,
|
|
|
39 |
tbar: [
|
|
|
40 |
<i>// Add the action directly to a toolbar as a menu button</i>
|
|
|
41 |
action, {
|
|
|
42 |
text: <em>'Action Menu'</em>,
|
|
|
43 |
<i>// Add the action to a menu as a text item</i>
|
|
|
44 |
menu: [action]
|
|
|
45 |
}
|
|
|
46 |
],
|
|
|
47 |
items: [
|
|
|
48 |
<i>// Add the action to the panel body as a standard button</i>
|
|
|
49 |
<b>new</b> Ext.Button(action)
|
|
|
50 |
],
|
|
|
51 |
renderTo: Ext.getBody()
|
|
|
52 |
});
|
|
|
53 |
|
|
|
54 |
<i>// Change the text <b>for</b> all components using the action</i>
|
|
|
55 |
action.setText(<em>'Something <b>else</b>'</em>);</code></pre> </div>
|
|
|
56 |
|
|
|
57 |
<div class="hr"></div>
|
|
|
58 |
<a id="Ext.Action-configs"></a>
|
|
|
59 |
<h2>Config Options</h2>
|
|
|
60 |
<table cellspacing="0" class="member-table">
|
|
|
61 |
<tr>
|
|
|
62 |
<th class="sig-header" colspan="2">Config Options</th>
|
|
|
63 |
<th class="msource-header">Defined By</th>
|
|
|
64 |
</tr>
|
|
|
65 |
<tr class="config-row">
|
|
|
66 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
67 |
<td class="sig">
|
|
|
68 |
<a id="Ext.Action-disabled"></a>
|
|
|
69 |
<b>disabled</b> : Boolean <div class="mdesc">
|
|
|
70 |
True to disable all components using this action, false to enable them (defaults to false). </div>
|
|
|
71 |
</td>
|
|
|
72 |
<td class="msource">Action</td>
|
|
|
73 |
</tr>
|
|
|
74 |
<tr class="config-row alt expandable">
|
|
|
75 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
76 |
<td class="sig">
|
|
|
77 |
<a id="Ext.Action-handler"></a>
|
|
|
78 |
<b>handler</b> : Function <div class="mdesc">
|
|
|
79 |
<div class="short">The function that will be invoked by each component tied to this action when the component's primary event is trigger...</div>
|
|
|
80 |
<div class="long">
|
|
|
81 |
The function that will be invoked by each component tied to this action when the component's primary event is triggered (defaults to undefined). </div>
|
|
|
82 |
</div>
|
|
|
83 |
</td>
|
|
|
84 |
<td class="msource">Action</td>
|
|
|
85 |
</tr>
|
|
|
86 |
<tr class="config-row">
|
|
|
87 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
88 |
<td class="sig">
|
|
|
89 |
<a id="Ext.Action-hidden"></a>
|
|
|
90 |
<b>hidden</b> : Boolean <div class="mdesc">
|
|
|
91 |
True to hide all components using this action, false to show them (defaults to false). </div>
|
|
|
92 |
</td>
|
|
|
93 |
<td class="msource">Action</td>
|
|
|
94 |
</tr>
|
|
|
95 |
<tr class="config-row alt expandable">
|
|
|
96 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
97 |
<td class="sig">
|
|
|
98 |
<a id="Ext.Action-iconCls"></a>
|
|
|
99 |
<b>iconCls</b> : String <div class="mdesc">
|
|
|
100 |
<div class="short">The icon CSS class for all components using this action (defaults to ''). The class should supply a background image ...</div>
|
|
|
101 |
<div class="long">
|
|
|
102 |
The icon CSS class for all components using this action (defaults to ''). The class should supply a background image that will be used as the icon image. </div>
|
|
|
103 |
</div>
|
|
|
104 |
</td>
|
|
|
105 |
<td class="msource">Action</td>
|
|
|
106 |
</tr>
|
|
|
107 |
<tr class="config-row">
|
|
|
108 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
109 |
<td class="sig">
|
|
|
110 |
<a id="Ext.Action-scope"></a>
|
|
|
111 |
<b>scope</b> : Object <div class="mdesc">
|
|
|
112 |
The scope in which the <a ext:cls="Ext.Action" ext:member="handler" href="output/Ext.Action.html#handler">handler</a> function will execute. </div>
|
|
|
113 |
</td>
|
|
|
114 |
<td class="msource">Action</td>
|
|
|
115 |
</tr>
|
|
|
116 |
<tr class="config-row alt">
|
|
|
117 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
118 |
<td class="sig">
|
|
|
119 |
<a id="Ext.Action-text"></a>
|
|
|
120 |
<b>text</b> : String <div class="mdesc">
|
|
|
121 |
The text to set for all components using this action (defaults to ''). </div>
|
|
|
122 |
</td>
|
|
|
123 |
<td class="msource">Action</td>
|
|
|
124 |
</tr>
|
|
|
125 |
</table>
|
|
|
126 |
<a id="Ext.Action-props"></a>
|
|
|
127 |
<h2>Public Properties</h2>
|
|
|
128 |
<table cellspacing="0" class="member-table">
|
|
|
129 |
<tr>
|
|
|
130 |
<th class="sig-header" colspan="2">Property</th>
|
|
|
131 |
<th class="msource-header">Defined By</th>
|
|
|
132 |
</tr>
|
|
|
133 |
<tr class="property-row">
|
|
|
134 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
135 |
<td class="sig">
|
|
|
136 |
<a id="Ext.Action-isDisabled"></a>
|
|
|
137 |
<b>isDisabled</b> : Object <div class="mdesc">
|
|
|
138 |
Returns true if the components using this action are currently disabled, else returns false. Read-only. </div>
|
|
|
139 |
</td>
|
|
|
140 |
<td class="msource">Action</td>
|
|
|
141 |
</tr>
|
|
|
142 |
<tr class="property-row alt">
|
|
|
143 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
144 |
<td class="sig">
|
|
|
145 |
<a id="Ext.Action-isHidden"></a>
|
|
|
146 |
<b>isHidden</b> : Object <div class="mdesc">
|
|
|
147 |
Returns true if the components using this action are currently hidden, else returns false. Read-only. </div>
|
|
|
148 |
</td>
|
|
|
149 |
<td class="msource">Action</td>
|
|
|
150 |
</tr>
|
|
|
151 |
</table>
|
|
|
152 |
<a id="Ext.Action-methods"></a>
|
|
|
153 |
<h2>Public Methods</h2>
|
|
|
154 |
<table cellspacing="0" class="member-table">
|
|
|
155 |
<tr>
|
|
|
156 |
<th class="sig-header" colspan="2">Method</th>
|
|
|
157 |
<th class="msource-header">Defined By</th>
|
|
|
158 |
</tr>
|
|
|
159 |
<tr class="method-row expandable">
|
|
|
160 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
161 |
<td class="sig">
|
|
|
162 |
<a id="Ext.Action-Action"></a>
|
|
|
163 |
<b>Action</b>( <code>Object config</code> ) <div class="mdesc">
|
|
|
164 |
<div class="short"></div>
|
|
|
165 |
<div class="long">
|
|
|
166 |
<div class="mdetail-params">
|
|
|
167 |
<strong>Parameters:</strong>
|
|
|
168 |
<ul><li><code>config</code> : Object<div class="sub-desc">The configuration options</div></li> </ul>
|
|
|
169 |
<strong>Returns:</strong>
|
|
|
170 |
<ul>
|
|
|
171 |
<li><code></code></li>
|
|
|
172 |
</ul>
|
|
|
173 |
</div>
|
|
|
174 |
</div>
|
|
|
175 |
</div>
|
|
|
176 |
</td>
|
|
|
177 |
<td class="msource">Action</td>
|
|
|
178 |
</tr>
|
|
|
179 |
<tr class="method-row alt expandable">
|
|
|
180 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
181 |
<td class="sig">
|
|
|
182 |
<a id="Ext.Action-disable"></a>
|
|
|
183 |
<b>disable</b>() : void <div class="mdesc">
|
|
|
184 |
<div class="short">Disables all components using this action.</div>
|
|
|
185 |
<div class="long">
|
|
|
186 |
Disables all components using this action. <div class="mdetail-params">
|
|
|
187 |
<strong>Parameters:</strong>
|
|
|
188 |
<ul><li>None.</li> </ul>
|
|
|
189 |
<strong>Returns:</strong>
|
|
|
190 |
<ul>
|
|
|
191 |
<li><code>void</code></li>
|
|
|
192 |
</ul>
|
|
|
193 |
</div>
|
|
|
194 |
</div>
|
|
|
195 |
</div>
|
|
|
196 |
</td>
|
|
|
197 |
<td class="msource">Action</td>
|
|
|
198 |
</tr>
|
|
|
199 |
<tr class="method-row expandable">
|
|
|
200 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
201 |
<td class="sig">
|
|
|
202 |
<a id="Ext.Action-each"></a>
|
|
|
203 |
<b>each</b>( <code>Function fn</code>, <code>Object scope</code> ) : void <div class="mdesc">
|
|
|
204 |
<div class="short">Executes the specified function once for each component currently tied to this action. The function passed
|
|
|
205 |
in should...</div>
|
|
|
206 |
<div class="long">
|
|
|
207 |
Executes the specified function once for each component currently tied to this action. The function passed
|
|
|
208 |
in should accept a single argument that will be an object that supports the basic Action config/method interface. <div class="mdetail-params">
|
|
|
209 |
<strong>Parameters:</strong>
|
|
|
210 |
<ul><li><code>fn</code> : Function<div class="sub-desc">The function to execute for each component</div></li><li><code>scope</code> : Object<div class="sub-desc">The scope in which the function will execute</div></li> </ul>
|
|
|
211 |
<strong>Returns:</strong>
|
|
|
212 |
<ul>
|
|
|
213 |
<li><code>void</code></li>
|
|
|
214 |
</ul>
|
|
|
215 |
</div>
|
|
|
216 |
</div>
|
|
|
217 |
</div>
|
|
|
218 |
</td>
|
|
|
219 |
<td class="msource">Action</td>
|
|
|
220 |
</tr>
|
|
|
221 |
<tr class="method-row alt expandable">
|
|
|
222 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
223 |
<td class="sig">
|
|
|
224 |
<a id="Ext.Action-enable"></a>
|
|
|
225 |
<b>enable</b>() : void <div class="mdesc">
|
|
|
226 |
<div class="short">Enables all components using this action.</div>
|
|
|
227 |
<div class="long">
|
|
|
228 |
Enables all components using this action. <div class="mdetail-params">
|
|
|
229 |
<strong>Parameters:</strong>
|
|
|
230 |
<ul><li>None.</li> </ul>
|
|
|
231 |
<strong>Returns:</strong>
|
|
|
232 |
<ul>
|
|
|
233 |
<li><code>void</code></li>
|
|
|
234 |
</ul>
|
|
|
235 |
</div>
|
|
|
236 |
</div>
|
|
|
237 |
</div>
|
|
|
238 |
</td>
|
|
|
239 |
<td class="msource">Action</td>
|
|
|
240 |
</tr>
|
|
|
241 |
<tr class="method-row expandable">
|
|
|
242 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
243 |
<td class="sig">
|
|
|
244 |
<a id="Ext.Action-execute"></a>
|
|
|
245 |
<b>execute</b>( <span class="optional" title="Optional">[<code>Mixed arg1</code>]</span>, <span class="optional" title="Optional">[<code>Mixed arg2</code>]</span>, <span class="optional" title="Optional">[<code>Mixed etc...</code>]</span> ) : void <div class="mdesc">
|
|
|
246 |
<div class="short">Executes this action manually using the default handler specified in the original config object. Any arguments
|
|
|
247 |
passe...</div>
|
|
|
248 |
<div class="long">
|
|
|
249 |
Executes this action manually using the default handler specified in the original config object. Any arguments
|
|
|
250 |
passed to this function will be passed on to the handler function. <div class="mdetail-params">
|
|
|
251 |
<strong>Parameters:</strong>
|
|
|
252 |
<ul><li><code>arg1</code> : Mixed<div class="sub-desc">(optional) Variable number of arguments passed to the handler function</div></li><li><code>arg2</code> : Mixed<div class="sub-desc">(optional)</div></li><li><code>etc...</code> : Mixed<div class="sub-desc">(optional)</div></li> </ul>
|
|
|
253 |
<strong>Returns:</strong>
|
|
|
254 |
<ul>
|
|
|
255 |
<li><code>void</code></li>
|
|
|
256 |
</ul>
|
|
|
257 |
</div>
|
|
|
258 |
</div>
|
|
|
259 |
</div>
|
|
|
260 |
</td>
|
|
|
261 |
<td class="msource">Action</td>
|
|
|
262 |
</tr>
|
|
|
263 |
<tr class="method-row alt expandable">
|
|
|
264 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
265 |
<td class="sig">
|
|
|
266 |
<a id="Ext.Action-getIconClass"></a>
|
|
|
267 |
<b>getIconClass</b>() : void <div class="mdesc">
|
|
|
268 |
<div class="short">Gets the icon CSS class currently used by all components using this action.</div>
|
|
|
269 |
<div class="long">
|
|
|
270 |
Gets the icon CSS class currently used by all components using this action. <div class="mdetail-params">
|
|
|
271 |
<strong>Parameters:</strong>
|
|
|
272 |
<ul><li>None.</li> </ul>
|
|
|
273 |
<strong>Returns:</strong>
|
|
|
274 |
<ul>
|
|
|
275 |
<li><code>void</code></li>
|
|
|
276 |
</ul>
|
|
|
277 |
</div>
|
|
|
278 |
</div>
|
|
|
279 |
</div>
|
|
|
280 |
</td>
|
|
|
281 |
<td class="msource">Action</td>
|
|
|
282 |
</tr>
|
|
|
283 |
<tr class="method-row expandable">
|
|
|
284 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
285 |
<td class="sig">
|
|
|
286 |
<a id="Ext.Action-getText"></a>
|
|
|
287 |
<b>getText</b>() : void <div class="mdesc">
|
|
|
288 |
<div class="short">Gets the text currently displayed by all components using this action.</div>
|
|
|
289 |
<div class="long">
|
|
|
290 |
Gets the text currently displayed by all components using this action. <div class="mdetail-params">
|
|
|
291 |
<strong>Parameters:</strong>
|
|
|
292 |
<ul><li>None.</li> </ul>
|
|
|
293 |
<strong>Returns:</strong>
|
|
|
294 |
<ul>
|
|
|
295 |
<li><code>void</code></li>
|
|
|
296 |
</ul>
|
|
|
297 |
</div>
|
|
|
298 |
</div>
|
|
|
299 |
</div>
|
|
|
300 |
</td>
|
|
|
301 |
<td class="msource">Action</td>
|
|
|
302 |
</tr>
|
|
|
303 |
<tr class="method-row alt expandable">
|
|
|
304 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
305 |
<td class="sig">
|
|
|
306 |
<a id="Ext.Action-hide"></a>
|
|
|
307 |
<b>hide</b>() : void <div class="mdesc">
|
|
|
308 |
<div class="short">Hides all components using this action.</div>
|
|
|
309 |
<div class="long">
|
|
|
310 |
Hides all components using this action. <div class="mdetail-params">
|
|
|
311 |
<strong>Parameters:</strong>
|
|
|
312 |
<ul><li>None.</li> </ul>
|
|
|
313 |
<strong>Returns:</strong>
|
|
|
314 |
<ul>
|
|
|
315 |
<li><code>void</code></li>
|
|
|
316 |
</ul>
|
|
|
317 |
</div>
|
|
|
318 |
</div>
|
|
|
319 |
</div>
|
|
|
320 |
</td>
|
|
|
321 |
<td class="msource">Action</td>
|
|
|
322 |
</tr>
|
|
|
323 |
<tr class="method-row expandable">
|
|
|
324 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
325 |
<td class="sig">
|
|
|
326 |
<a id="Ext.Action-setDisabled"></a>
|
|
|
327 |
<b>setDisabled</b>( <code>Boolean disabled</code> ) : void <div class="mdesc">
|
|
|
328 |
<div class="short">Sets the disabled state of all components using this action. Shortcut method
|
|
|
329 |
for <a ext:cls="Ext.Action" ext:member="enable" href="output/Ext.Action.html#enable">enable</a> and <a ext:cls="Ext.Action" ext:member="disable" href="output/Ext.Action.html#disable">disable</a>.</div>
|
|
|
330 |
<div class="long">
|
|
|
331 |
Sets the disabled state of all components using this action. Shortcut method
|
|
|
332 |
for <a ext:cls="Ext.Action" ext:member="enable" href="output/Ext.Action.html#enable">enable</a> and <a ext:cls="Ext.Action" ext:member="disable" href="output/Ext.Action.html#disable">disable</a>. <div class="mdetail-params">
|
|
|
333 |
<strong>Parameters:</strong>
|
|
|
334 |
<ul><li><code>disabled</code> : Boolean<div class="sub-desc">True to disable the component, false to enable it</div></li> </ul>
|
|
|
335 |
<strong>Returns:</strong>
|
|
|
336 |
<ul>
|
|
|
337 |
<li><code>void</code></li>
|
|
|
338 |
</ul>
|
|
|
339 |
</div>
|
|
|
340 |
</div>
|
|
|
341 |
</div>
|
|
|
342 |
</td>
|
|
|
343 |
<td class="msource">Action</td>
|
|
|
344 |
</tr>
|
|
|
345 |
<tr class="method-row alt expandable">
|
|
|
346 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
347 |
<td class="sig">
|
|
|
348 |
<a id="Ext.Action-setHandler"></a>
|
|
|
349 |
<b>setHandler</b>( <code>Function fn</code>, <code>Object scope</code> ) : void <div class="mdesc">
|
|
|
350 |
<div class="short">Sets the function that will be called by each component using this action when its primary event is triggered.</div>
|
|
|
351 |
<div class="long">
|
|
|
352 |
Sets the function that will be called by each component using this action when its primary event is triggered. <div class="mdetail-params">
|
|
|
353 |
<strong>Parameters:</strong>
|
|
|
354 |
<ul><li><code>fn</code> : Function<div class="sub-desc">The function that will be invoked by the action's components. The function
|
|
|
355 |
will be called with no arguments.</div></li><li><code>scope</code> : Object<div class="sub-desc">The scope in which the function will execute</div></li> </ul>
|
|
|
356 |
<strong>Returns:</strong>
|
|
|
357 |
<ul>
|
|
|
358 |
<li><code>void</code></li>
|
|
|
359 |
</ul>
|
|
|
360 |
</div>
|
|
|
361 |
</div>
|
|
|
362 |
</div>
|
|
|
363 |
</td>
|
|
|
364 |
<td class="msource">Action</td>
|
|
|
365 |
</tr>
|
|
|
366 |
<tr class="method-row expandable">
|
|
|
367 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
368 |
<td class="sig">
|
|
|
369 |
<a id="Ext.Action-setHidden"></a>
|
|
|
370 |
<b>setHidden</b>( <code>Boolean hidden</code> ) : void <div class="mdesc">
|
|
|
371 |
<div class="short">Sets the hidden state of all components using this action. Shortcut method
|
|
|
372 |
for <a ext:cls="Ext.Action" ext:member="hide" href="output/Ext.Action.html#hide">hide</a> and <a ext:cls="Ext.Action" ext:member="show" href="output/Ext.Action.html#show">show</a>.</div>
|
|
|
373 |
<div class="long">
|
|
|
374 |
Sets the hidden state of all components using this action. Shortcut method
|
|
|
375 |
for <a ext:cls="Ext.Action" ext:member="hide" href="output/Ext.Action.html#hide">hide</a> and <a ext:cls="Ext.Action" ext:member="show" href="output/Ext.Action.html#show">show</a>. <div class="mdetail-params">
|
|
|
376 |
<strong>Parameters:</strong>
|
|
|
377 |
<ul><li><code>hidden</code> : Boolean<div class="sub-desc">True to hide the component, false to show it</div></li> </ul>
|
|
|
378 |
<strong>Returns:</strong>
|
|
|
379 |
<ul>
|
|
|
380 |
<li><code>void</code></li>
|
|
|
381 |
</ul>
|
|
|
382 |
</div>
|
|
|
383 |
</div>
|
|
|
384 |
</div>
|
|
|
385 |
</td>
|
|
|
386 |
<td class="msource">Action</td>
|
|
|
387 |
</tr>
|
|
|
388 |
<tr class="method-row alt expandable">
|
|
|
389 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
390 |
<td class="sig">
|
|
|
391 |
<a id="Ext.Action-setIconClass"></a>
|
|
|
392 |
<b>setIconClass</b>( <code>String cls</code> ) : void <div class="mdesc">
|
|
|
393 |
<div class="short">Sets the icon CSS class for all components using this action. The class should supply
|
|
|
394 |
a background image that will b...</div>
|
|
|
395 |
<div class="long">
|
|
|
396 |
Sets the icon CSS class for all components using this action. The class should supply
|
|
|
397 |
a background image that will be used as the icon image. <div class="mdetail-params">
|
|
|
398 |
<strong>Parameters:</strong>
|
|
|
399 |
<ul><li><code>cls</code> : String<div class="sub-desc">The CSS class supplying the icon image</div></li> </ul>
|
|
|
400 |
<strong>Returns:</strong>
|
|
|
401 |
<ul>
|
|
|
402 |
<li><code>void</code></li>
|
|
|
403 |
</ul>
|
|
|
404 |
</div>
|
|
|
405 |
</div>
|
|
|
406 |
</div>
|
|
|
407 |
</td>
|
|
|
408 |
<td class="msource">Action</td>
|
|
|
409 |
</tr>
|
|
|
410 |
<tr class="method-row expandable">
|
|
|
411 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
412 |
<td class="sig">
|
|
|
413 |
<a id="Ext.Action-setText"></a>
|
|
|
414 |
<b>setText</b>( <code>String text</code> ) : void <div class="mdesc">
|
|
|
415 |
<div class="short">Sets the text to be displayed by all components using this action.</div>
|
|
|
416 |
<div class="long">
|
|
|
417 |
Sets the text to be displayed by all components using this action. <div class="mdetail-params">
|
|
|
418 |
<strong>Parameters:</strong>
|
|
|
419 |
<ul><li><code>text</code> : String<div class="sub-desc">The text to display</div></li> </ul>
|
|
|
420 |
<strong>Returns:</strong>
|
|
|
421 |
<ul>
|
|
|
422 |
<li><code>void</code></li>
|
|
|
423 |
</ul>
|
|
|
424 |
</div>
|
|
|
425 |
</div>
|
|
|
426 |
</div>
|
|
|
427 |
</td>
|
|
|
428 |
<td class="msource">Action</td>
|
|
|
429 |
</tr>
|
|
|
430 |
<tr class="method-row alt expandable">
|
|
|
431 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
432 |
<td class="sig">
|
|
|
433 |
<a id="Ext.Action-show"></a>
|
|
|
434 |
<b>show</b>() : void <div class="mdesc">
|
|
|
435 |
<div class="short">Shows all components using this action.</div>
|
|
|
436 |
<div class="long">
|
|
|
437 |
Shows all components using this action. <div class="mdetail-params">
|
|
|
438 |
<strong>Parameters:</strong>
|
|
|
439 |
<ul><li>None.</li> </ul>
|
|
|
440 |
<strong>Returns:</strong>
|
|
|
441 |
<ul>
|
|
|
442 |
<li><code>void</code></li>
|
|
|
443 |
</ul>
|
|
|
444 |
</div>
|
|
|
445 |
</div>
|
|
|
446 |
</div>
|
|
|
447 |
</td>
|
|
|
448 |
<td class="msource">Action</td>
|
|
|
449 |
</tr>
|
|
|
450 |
</table>
|
|
|
451 |
<a id="Ext.Action-events"></a>
|
|
|
452 |
<h2>Public Events</h2>
|
|
|
453 |
<div class="no-members">This class has no public events.</div>
|
|
|
454 |
</div>
|