Ext.LoadMask.html
9.82 KB
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
<div class="body-wrap">
<div class="top-tools">
<a class="inner-link" href="#Ext.LoadMask-props"><img src="../resources/images/default/s_wev8.gif" class="item-icon icon-prop">Properties</a>
<a class="inner-link" href="#Ext.LoadMask-methods"><img src="../resources/images/default/s_wev8.gif" class="item-icon icon-method">Methods</a>
<a class="inner-link" href="#Ext.LoadMask-events"><img src="../resources/images/default/s_wev8.gif" class="item-icon icon-event">Events</a>
<a class="inner-link" href="#Ext.LoadMask-configs"><img src="../resources/images/default/s_wev8.gif" class="item-icon icon-config">Config Options</a>
<a class="bookmark" href="../docs/?class=Ext.LoadMask"><img src="../resources/images/default/s_wev8.gif" class="item-icon icon-fav">Direct Link</a>
</div>
<h1>Class Ext.LoadMask</h1>
<table cellspacing="0">
<tr><td class="label">Package:</td><td class="hd-info">Ext</td></tr>
<tr><td class="label">Defined In:</td><td class="hd-info"><a href="../source/widgets/LoadMask_wev8.js" target="_blank">LoadMask_wev8.js</a></td></tr>
<tr><td class="label">Class:</td><td class="hd-info">LoadMask</td></tr>
<tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>
</table>
<div class="description">
A simple utility class for generically masking elements while loading data. If the <a ext:cls="Ext.LoadMask" ext:member="store" href="output/Ext.LoadMask.html#store">store</a>
config option is specified, the masking will be automatically synchronized with the store's loading
process and the mask element will be cached for reuse. For all other elements, this mask will replace the
element's Updater load indicator and will be destroyed after the initial load. </div>
<div class="hr"></div>
<a id="Ext.LoadMask-configs"></a>
<h2>Config Options</h2>
<table cellspacing="0" class="member-table">
<tr>
<th class="sig-header" colspan="2">Config Options</th>
<th class="msource-header">Defined By</th>
</tr>
<tr class="config-row">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.LoadMask-msg"></a>
<b>msg</b> : String <div class="mdesc">
The text to display in a centered loading message box (defaults to 'Loading...') </div>
</td>
<td class="msource">LoadMask</td>
</tr>
<tr class="config-row alt">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.LoadMask-msgCls"></a>
<b>msgCls</b> : String <div class="mdesc">
The CSS class to apply to the loading message element (defaults to "x-mask-loading") </div>
</td>
<td class="msource">LoadMask</td>
</tr>
<tr class="config-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.LoadMask-removeMask"></a>
<b>removeMask</b> : Boolean <div class="mdesc">
<div class="short">True to create a single-use mask that is automatically destroyed after loading (useful for page loads), False to pers...</div>
<div class="long">
True to create a single-use mask that is automatically destroyed after loading (useful for page loads), False to persist the mask element reference for multiple uses (e.g., for paged data widgets). Defaults to false. </div>
</div>
</td>
<td class="msource">LoadMask</td>
</tr>
<tr class="config-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.LoadMask-store"></a>
<b>store</b> : Ext.data.Store <div class="mdesc">
<div class="short">Optional Store to which the mask is bound. The mask is displayed when a load request is issued, and hidden on either ...</div>
<div class="long">
Optional Store to which the mask is bound. The mask is displayed when a load request is issued, and hidden on either load sucess, or load fail. </div>
</div>
</td>
<td class="msource">LoadMask</td>
</tr>
</table>
<a id="Ext.LoadMask-props"></a>
<h2>Public Properties</h2>
<table cellspacing="0" class="member-table">
<tr>
<th class="sig-header" colspan="2">Property</th>
<th class="msource-header">Defined By</th>
</tr>
<tr class="property-row">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.LoadMask-disabled"></a>
<b>disabled</b> : Boolean <div class="mdesc">
Read-only. True if the mask is currently disabled so that it will not be displayed (defaults to false) </div>
</td>
<td class="msource">LoadMask</td>
</tr>
</table>
<a id="Ext.LoadMask-methods"></a>
<h2>Public Methods</h2>
<table cellspacing="0" class="member-table">
<tr>
<th class="sig-header" colspan="2">Method</th>
<th class="msource-header">Defined By</th>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.LoadMask-LoadMask"></a>
<b>LoadMask</b>( <code>Mixed el</code>, <code>Object config</code> ) <div class="mdesc">
<div class="short">Create a new LoadMask</div>
<div class="long">
Create a new LoadMask <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li><code>el</code> : Mixed<div class="sub-desc">The element or DOM node, or its id</div></li><li><code>config</code> : Object<div class="sub-desc">The config object</div></li> </ul>
<strong>Returns:</strong>
<ul>
<li><code></code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">LoadMask</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.LoadMask-disable"></a>
<b>disable</b>() : void <div class="mdesc">
<div class="short">Disables the mask to prevent it from being displayed</div>
<div class="long">
Disables the mask to prevent it from being displayed <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">LoadMask</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.LoadMask-enable"></a>
<b>enable</b>() : void <div class="mdesc">
<div class="short">Enables the mask so that it can be displayed</div>
<div class="long">
Enables the mask so that it can be displayed <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">LoadMask</td>
</tr>
<tr class="method-row alt expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.LoadMask-hide"></a>
<b>hide</b>() : void <div class="mdesc">
<div class="short">Hide this LoadMask.</div>
<div class="long">
Hide this LoadMask. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">LoadMask</td>
</tr>
<tr class="method-row expandable">
<td class="micon"><a class="exi" href="#expand"> </a></td>
<td class="sig">
<a id="Ext.LoadMask-show"></a>
<b>show</b>() : void <div class="mdesc">
<div class="short">Show this LoadMask over the configured Element.</div>
<div class="long">
Show this LoadMask over the configured Element. <div class="mdetail-params">
<strong>Parameters:</strong>
<ul><li>None.</li> </ul>
<strong>Returns:</strong>
<ul>
<li><code>void</code></li>
</ul>
</div>
</div>
</div>
</td>
<td class="msource">LoadMask</td>
</tr>
</table>
<a id="Ext.LoadMask-events"></a>
<h2>Public Events</h2>
<div class="no-members">This class has no public events.</div>
</div>