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