1 <div class="body-wrap">
2 <div class="top-tools">
3 <a class="inner-link" href="#Ext.dd.StatusProxy-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
4 <a class="inner-link" href="#Ext.dd.StatusProxy-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
5 <a class="inner-link" href="#Ext.dd.StatusProxy-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
6 <a class="inner-link" href="#Ext.dd.StatusProxy-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
7 <a class="bookmark" href="../docs/?class=Ext.dd.StatusProxy"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
9 <h1>Class Ext.dd.StatusProxy</h1>
10 <table cellspacing="0">
11 <tr><td class="label">Package:</td><td class="hd-info">Ext.dd</td></tr>
12 <tr><td class="label">Defined In:</td><td class="hd-info"><a href="../src/StatusProxy.js" target="_blank">StatusProxy.js</a></td></tr>
13 <tr><td class="label">Class:</td><td class="hd-info">StatusProxy</td></tr>
14 <tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>
16 <div class="description">
18 A specialized drag proxy that supports a drop status icon, <a ext:cls="Ext.Layer" href="output/Ext.Layer.html">Ext.Layer</a> styles and auto-repair. This is the
19 default drag proxy used by all Ext.dd components. </div>
21 <div class="hr"></div>
22 <a id="Ext.dd.StatusProxy-configs"></a>
23 <h2>Config Options</h2>
24 <table cellspacing="0" class="member-table">
26 <th class="sig-header" colspan="2">Config Options</th>
27 <th class="msource-header">Defined By</th>
29 <tr class="config-row">
\r
30 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
32 <a id="Ext.dd.StatusProxy-dropAllowed"></a>
\r
33 <b>dropAllowed</b> : String <div class="mdesc">
\r
34 The CSS class to apply to the status element when drop is allowed (defaults to "x-dd-drop-ok"). </div>
\r
36 <td class="msource">StatusProxy</td>
\r
38 <tr class="config-row alt">
\r
39 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
41 <a id="Ext.dd.StatusProxy-dropNotAllowed"></a>
\r
42 <b>dropNotAllowed</b> : String <div class="mdesc">
\r
43 The CSS class to apply to the status element when drop is not allowed (defaults to "x-dd-drop-nodrop"). </div>
\r
45 <td class="msource">StatusProxy</td>
\r
48 <a id="Ext.dd.StatusProxy-props"></a>
49 <h2>Public Properties</h2>
50 <div class="no-members">This class has no public properties.</div> <a id="Ext.dd.StatusProxy-methods"></a>
51 <h2>Public Methods</h2>
52 <table cellspacing="0" class="member-table">
54 <th class="sig-header" colspan="2">Method</th>
55 <th class="msource-header">Defined By</th>
57 <tr class="method-row expandable">
\r
58 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
60 <a id="Ext.dd.StatusProxy-StatusProxy"></a>
\r
61 <b>StatusProxy</b>( <code>Object config</code> ) <div class="mdesc">
\r
62 <div class="short"></div>
\r
64 <div class="mdetail-params">
\r
65 <strong>Parameters:</strong>
\r
66 <ul><li><code>config</code> : Object<div class="sub-desc"></div></li> </ul>
\r
67 <strong>Returns:</strong>
\r
69 <li><code></code></li>
\r
75 <td class="msource">StatusProxy</td>
\r
77 <tr class="method-row alt expandable">
\r
78 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
80 <a id="Ext.dd.StatusProxy-getEl"></a>
\r
81 <b>getEl</b>() : Ext.Layer <div class="mdesc">
\r
82 <div class="short">Returns the underlying proxy <a ext:cls="Ext.Layer" href="output/Ext.Layer.html">Ext.Layer</a></div>
\r
84 Returns the underlying proxy <a ext:cls="Ext.Layer" href="output/Ext.Layer.html">Ext.Layer</a> <div class="mdetail-params">
\r
85 <strong>Parameters:</strong>
\r
86 <ul><li>None.</li> </ul>
\r
87 <strong>Returns:</strong>
\r
89 <li><code>Ext.Layer</code><div class="sub-desc">el</div></li>
\r
95 <td class="msource">StatusProxy</td>
\r
97 <tr class="method-row expandable">
\r
98 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
100 <a id="Ext.dd.StatusProxy-getGhost"></a>
\r
101 <b>getGhost</b>() : Ext.Element <div class="mdesc">
\r
102 <div class="short">Returns the ghost element</div>
\r
104 Returns the ghost element <div class="mdetail-params">
\r
105 <strong>Parameters:</strong>
\r
106 <ul><li>None.</li> </ul>
\r
107 <strong>Returns:</strong>
\r
109 <li><code>Ext.Element</code><div class="sub-desc">el</div></li>
\r
115 <td class="msource">StatusProxy</td>
\r
117 <tr class="method-row alt expandable">
\r
118 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
120 <a id="Ext.dd.StatusProxy-hide"></a>
\r
121 <b>hide</b>( <code>Boolean clear</code> ) : void <div class="mdesc">
\r
122 <div class="short">Hides the proxy</div>
\r
124 Hides the proxy <div class="mdetail-params">
\r
125 <strong>Parameters:</strong>
\r
126 <ul><li><code>clear</code> : Boolean<div class="sub-desc">True to reset the status and clear the ghost contents, false to preserve them</div></li> </ul>
\r
127 <strong>Returns:</strong>
\r
129 <li><code>void</code></li>
\r
135 <td class="msource">StatusProxy</td>
\r
137 <tr class="method-row expandable">
\r
138 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
140 <a id="Ext.dd.StatusProxy-repair"></a>
\r
141 <b>repair</b>( <code>Array xy</code>, <code>Function callback</code>, <code>Object scope</code> ) : void <div class="mdesc">
\r
142 <div class="short">Causes the proxy to return to its position of origin via an animation. Should be called after an
143 invalid drop operat...</div>
\r
145 Causes the proxy to return to its position of origin via an animation. Should be called after an
146 invalid drop operation by the item being dragged. <div class="mdetail-params">
\r
147 <strong>Parameters:</strong>
\r
148 <ul><li><code>xy</code> : Array<div class="sub-desc">The XY position of the element ([x, y])</div></li><li><code>callback</code> : Function<div class="sub-desc">The function to call after the repair is complete</div></li><li><code>scope</code> : Object<div class="sub-desc">The scope in which to execute the callback</div></li> </ul>
\r
149 <strong>Returns:</strong>
\r
151 <li><code>void</code></li>
\r
157 <td class="msource">StatusProxy</td>
\r
159 <tr class="method-row alt expandable">
\r
160 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
162 <a id="Ext.dd.StatusProxy-reset"></a>
\r
163 <b>reset</b>( <code>Boolean clearGhost</code> ) : void <div class="mdesc">
\r
164 <div class="short">Resets the status indicator to the default dropNotAllowed value</div>
\r
166 Resets the status indicator to the default dropNotAllowed value <div class="mdetail-params">
\r
167 <strong>Parameters:</strong>
\r
168 <ul><li><code>clearGhost</code> : Boolean<div class="sub-desc">True to also remove all content from the ghost, false to preserve it</div></li> </ul>
\r
169 <strong>Returns:</strong>
\r
171 <li><code>void</code></li>
\r
177 <td class="msource">StatusProxy</td>
\r
179 <tr class="method-row expandable">
\r
180 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
182 <a id="Ext.dd.StatusProxy-setStatus"></a>
\r
183 <b>setStatus</b>( <code>String cssClass</code> ) : void <div class="mdesc">
\r
184 <div class="short">Updates the proxy's visual element to indicate the status of whether or not drop is allowed
185 over the current target e...</div>
\r
187 Updates the proxy's visual element to indicate the status of whether or not drop is allowed
188 over the current target element. <div class="mdetail-params">
\r
189 <strong>Parameters:</strong>
\r
190 <ul><li><code>cssClass</code> : String<div class="sub-desc">The css class for the new drop status indicator image</div></li> </ul>
\r
191 <strong>Returns:</strong>
\r
193 <li><code>void</code></li>
\r
199 <td class="msource">StatusProxy</td>
\r
201 <tr class="method-row alt expandable">
\r
202 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
204 <a id="Ext.dd.StatusProxy-show"></a>
\r
205 <b>show</b>() : void <div class="mdesc">
\r
206 <div class="short">Displays this proxy</div>
\r
208 Displays this proxy <div class="mdetail-params">
\r
209 <strong>Parameters:</strong>
\r
210 <ul><li>None.</li> </ul>
\r
211 <strong>Returns:</strong>
\r
213 <li><code>void</code></li>
\r
219 <td class="msource">StatusProxy</td>
\r
221 <tr class="method-row expandable">
\r
222 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
224 <a id="Ext.dd.StatusProxy-stop"></a>
\r
225 <b>stop</b>() : void <div class="mdesc">
\r
226 <div class="short">Stops the repair animation if it's currently running</div>
\r
228 Stops the repair animation if it's currently running <div class="mdetail-params">
\r
229 <strong>Parameters:</strong>
\r
230 <ul><li>None.</li> </ul>
\r
231 <strong>Returns:</strong>
\r
233 <li><code>void</code></li>
\r
239 <td class="msource">StatusProxy</td>
\r
241 <tr class="method-row alt expandable">
\r
242 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
244 <a id="Ext.dd.StatusProxy-sync"></a>
\r
245 <b>sync</b>() : void <div class="mdesc">
\r
246 <div class="short">Force the Layer to sync its shadow and shim positions to the element</div>
\r
248 Force the Layer to sync its shadow and shim positions to the element <div class="mdetail-params">
\r
249 <strong>Parameters:</strong>
\r
250 <ul><li>None.</li> </ul>
\r
251 <strong>Returns:</strong>
\r
253 <li><code>void</code></li>
\r
259 <td class="msource">StatusProxy</td>
\r
261 <tr class="method-row expandable">
\r
262 <td class="micon"><a class="exi" href="#expand"> </a></td>
\r
264 <a id="Ext.dd.StatusProxy-update"></a>
\r
265 <b>update</b>( <code>String/HTMLElement html</code> ) : void <div class="mdesc">
\r
266 <div class="short">Updates the contents of the ghost element</div>
\r
268 Updates the contents of the ghost element <div class="mdetail-params">
\r
269 <strong>Parameters:</strong>
\r
270 <ul><li><code>html</code> : String/HTMLElement<div class="sub-desc">The html that will replace the current innerHTML of the ghost element, or a
271 DOM node to append as the child of the ghost element (in which case the innerHTML will be cleared first).</div></li> </ul>
\r
272 <strong>Returns:</strong>
\r
274 <li><code>void</code></li>
\r
280 <td class="msource">StatusProxy</td>
\r
283 <a id="Ext.dd.StatusProxy-events"></a>
284 <h2>Public Events</h2>
285 <div class="no-members">This class has no public events.</div>