2 |
aperonnet |
1 |
<div class="body-wrap">
|
|
|
2 |
<div class="top-tools">
|
|
|
3 |
<a class="inner-link" href="#Ext.Shadow-props"><img src="../resources/images/default/s.gif" class="item-icon icon-prop">Properties</a>
|
|
|
4 |
<a class="inner-link" href="#Ext.Shadow-methods"><img src="../resources/images/default/s.gif" class="item-icon icon-method">Methods</a>
|
|
|
5 |
<a class="inner-link" href="#Ext.Shadow-events"><img src="../resources/images/default/s.gif" class="item-icon icon-event">Events</a>
|
|
|
6 |
<a class="inner-link" href="#Ext.Shadow-configs"><img src="../resources/images/default/s.gif" class="item-icon icon-config">Config Options</a>
|
|
|
7 |
<a class="bookmark" href="../docs/?class=Ext.Shadow"><img src="../resources/images/default/s.gif" class="item-icon icon-fav">Direct Link</a>
|
|
|
8 |
</div>
|
|
|
9 |
<h1>Class Ext.Shadow</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/Shadow.js" target="_blank">Shadow.js</a></td></tr>
|
|
|
13 |
<tr><td class="label">Class:</td><td class="hd-info">Shadow</td></tr>
|
|
|
14 |
<tr><td class="label">Extends:</td><td class="hd-info">Object</td></tr>
|
|
|
15 |
</table>
|
|
|
16 |
<div class="description">
|
|
|
17 |
Simple class that can provide a shadow effect for any element. Note that the element MUST be absolutely positioned,
|
|
|
18 |
and the shadow does not provide any shimming. This should be used only in simple cases -- for more advanced
|
|
|
19 |
functionality that can also provide the same shadow effect, see the <a ext:cls="Ext.Layer" href="output/Ext.Layer.html">Ext.Layer</a> class. </div>
|
|
|
20 |
|
|
|
21 |
<div class="hr"></div>
|
|
|
22 |
<a id="Ext.Shadow-configs"></a>
|
|
|
23 |
<h2>Config Options</h2>
|
|
|
24 |
<table cellspacing="0" class="member-table">
|
|
|
25 |
<tr>
|
|
|
26 |
<th class="sig-header" colspan="2">Config Options</th>
|
|
|
27 |
<th class="msource-header">Defined By</th>
|
|
|
28 |
</tr>
|
|
|
29 |
<tr class="config-row expandable">
|
|
|
30 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
31 |
<td class="sig">
|
|
|
32 |
<a id="Ext.Shadow-mode"></a>
|
|
|
33 |
<b>mode</b> : String <div class="mdesc">
|
|
|
34 |
<div class="short">The shadow display mode. Supports the following options: sides: Shadow displays on both sides and bottom only frame: ...</div>
|
|
|
35 |
<div class="long">
|
|
|
36 |
The shadow display mode. Supports the following options:<br /> sides: Shadow displays on both sides and bottom only<br /> frame: Shadow displays equally on all four sides<br /> drop: Traditional bottom-right drop shadow (default) </div>
|
|
|
37 |
</div>
|
|
|
38 |
</td>
|
|
|
39 |
<td class="msource">Shadow</td>
|
|
|
40 |
</tr>
|
|
|
41 |
<tr class="config-row alt">
|
|
|
42 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
43 |
<td class="sig">
|
|
|
44 |
<a id="Ext.Shadow-offset"></a>
|
|
|
45 |
<b>offset</b> : String <div class="mdesc">
|
|
|
46 |
The number of pixels to offset the shadow from the element (defaults to 4) </div>
|
|
|
47 |
</td>
|
|
|
48 |
<td class="msource">Shadow</td>
|
|
|
49 |
</tr>
|
|
|
50 |
</table>
|
|
|
51 |
<a id="Ext.Shadow-props"></a>
|
|
|
52 |
<h2>Public Properties</h2>
|
|
|
53 |
<div class="no-members">This class has no public properties.</div> <a id="Ext.Shadow-methods"></a>
|
|
|
54 |
<h2>Public Methods</h2>
|
|
|
55 |
<table cellspacing="0" class="member-table">
|
|
|
56 |
<tr>
|
|
|
57 |
<th class="sig-header" colspan="2">Method</th>
|
|
|
58 |
<th class="msource-header">Defined By</th>
|
|
|
59 |
</tr>
|
|
|
60 |
<tr class="method-row expandable">
|
|
|
61 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
62 |
<td class="sig">
|
|
|
63 |
<a id="Ext.Shadow-Shadow"></a>
|
|
|
64 |
<b>Shadow</b>( <code>Object config</code> ) <div class="mdesc">
|
|
|
65 |
<div class="short">Create a new Shadow</div>
|
|
|
66 |
<div class="long">
|
|
|
67 |
Create a new Shadow <div class="mdetail-params">
|
|
|
68 |
<strong>Parameters:</strong>
|
|
|
69 |
<ul><li><code>config</code> : Object<div class="sub-desc">The config object</div></li> </ul>
|
|
|
70 |
<strong>Returns:</strong>
|
|
|
71 |
<ul>
|
|
|
72 |
<li><code></code></li>
|
|
|
73 |
</ul>
|
|
|
74 |
</div>
|
|
|
75 |
</div>
|
|
|
76 |
</div>
|
|
|
77 |
</td>
|
|
|
78 |
<td class="msource">Shadow</td>
|
|
|
79 |
</tr>
|
|
|
80 |
<tr class="method-row alt expandable">
|
|
|
81 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
82 |
<td class="sig">
|
|
|
83 |
<a id="Ext.Shadow-hide"></a>
|
|
|
84 |
<b>hide</b>() : void <div class="mdesc">
|
|
|
85 |
<div class="short">Hides this shadow</div>
|
|
|
86 |
<div class="long">
|
|
|
87 |
Hides this shadow <div class="mdetail-params">
|
|
|
88 |
<strong>Parameters:</strong>
|
|
|
89 |
<ul><li>None.</li> </ul>
|
|
|
90 |
<strong>Returns:</strong>
|
|
|
91 |
<ul>
|
|
|
92 |
<li><code>void</code></li>
|
|
|
93 |
</ul>
|
|
|
94 |
</div>
|
|
|
95 |
</div>
|
|
|
96 |
</div>
|
|
|
97 |
</td>
|
|
|
98 |
<td class="msource">Shadow</td>
|
|
|
99 |
</tr>
|
|
|
100 |
<tr class="method-row expandable">
|
|
|
101 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
102 |
<td class="sig">
|
|
|
103 |
<a id="Ext.Shadow-isVisible"></a>
|
|
|
104 |
<b>isVisible</b>() : void <div class="mdesc">
|
|
|
105 |
<div class="short">Returns true if the shadow is visible, else false</div>
|
|
|
106 |
<div class="long">
|
|
|
107 |
Returns true if the shadow is visible, else false <div class="mdetail-params">
|
|
|
108 |
<strong>Parameters:</strong>
|
|
|
109 |
<ul><li>None.</li> </ul>
|
|
|
110 |
<strong>Returns:</strong>
|
|
|
111 |
<ul>
|
|
|
112 |
<li><code>void</code></li>
|
|
|
113 |
</ul>
|
|
|
114 |
</div>
|
|
|
115 |
</div>
|
|
|
116 |
</div>
|
|
|
117 |
</td>
|
|
|
118 |
<td class="msource">Shadow</td>
|
|
|
119 |
</tr>
|
|
|
120 |
<tr class="method-row alt expandable">
|
|
|
121 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
122 |
<td class="sig">
|
|
|
123 |
<a id="Ext.Shadow-realign"></a>
|
|
|
124 |
<b>realign</b>( <code>Number left</code>, <code>Number top</code>, <code>Number width</code>, <code>Number height</code> ) : void <div class="mdesc">
|
|
|
125 |
<div class="short">Direct alignment when values are already available. Show must be called at least once before
|
|
|
126 |
calling this method to e...</div>
|
|
|
127 |
<div class="long">
|
|
|
128 |
Direct alignment when values are already available. Show must be called at least once before
|
|
|
129 |
calling this method to ensure it is initialized. <div class="mdetail-params">
|
|
|
130 |
<strong>Parameters:</strong>
|
|
|
131 |
<ul><li><code>left</code> : Number<div class="sub-desc">The target element left position</div></li><li><code>top</code> : Number<div class="sub-desc">The target element top position</div></li><li><code>width</code> : Number<div class="sub-desc">The target element width</div></li><li><code>height</code> : Number<div class="sub-desc">The target element height</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">Shadow</td>
|
|
|
141 |
</tr>
|
|
|
142 |
<tr class="method-row expandable">
|
|
|
143 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
144 |
<td class="sig">
|
|
|
145 |
<a id="Ext.Shadow-setZIndex"></a>
|
|
|
146 |
<b>setZIndex</b>( <code>Number zindex</code> ) : void <div class="mdesc">
|
|
|
147 |
<div class="short">Adjust the z-index of this shadow</div>
|
|
|
148 |
<div class="long">
|
|
|
149 |
Adjust the z-index of this shadow <div class="mdetail-params">
|
|
|
150 |
<strong>Parameters:</strong>
|
|
|
151 |
<ul><li><code>zindex</code> : Number<div class="sub-desc">The new z-index</div></li> </ul>
|
|
|
152 |
<strong>Returns:</strong>
|
|
|
153 |
<ul>
|
|
|
154 |
<li><code>void</code></li>
|
|
|
155 |
</ul>
|
|
|
156 |
</div>
|
|
|
157 |
</div>
|
|
|
158 |
</div>
|
|
|
159 |
</td>
|
|
|
160 |
<td class="msource">Shadow</td>
|
|
|
161 |
</tr>
|
|
|
162 |
<tr class="method-row alt expandable">
|
|
|
163 |
<td class="micon"><a class="exi" href="#expand"> </a></td>
|
|
|
164 |
<td class="sig">
|
|
|
165 |
<a id="Ext.Shadow-show"></a>
|
|
|
166 |
<b>show</b>( <code>Mixed targetEl</code> ) : void <div class="mdesc">
|
|
|
167 |
<div class="short">Displays the shadow under the target element</div>
|
|
|
168 |
<div class="long">
|
|
|
169 |
Displays the shadow under the target element <div class="mdetail-params">
|
|
|
170 |
<strong>Parameters:</strong>
|
|
|
171 |
<ul><li><code>targetEl</code> : Mixed<div class="sub-desc">The id or element under which the shadow should display</div></li> </ul>
|
|
|
172 |
<strong>Returns:</strong>
|
|
|
173 |
<ul>
|
|
|
174 |
<li><code>void</code></li>
|
|
|
175 |
</ul>
|
|
|
176 |
</div>
|
|
|
177 |
</div>
|
|
|
178 |
</div>
|
|
|
179 |
</td>
|
|
|
180 |
<td class="msource">Shadow</td>
|
|
|
181 |
</tr>
|
|
|
182 |
</table>
|
|
|
183 |
<a id="Ext.Shadow-events"></a>
|
|
|
184 |
<h2>Public Events</h2>
|
|
|
185 |
<div class="no-members">This class has no public events.</div>
|
|
|
186 |
</div>
|