Simple class that can provide a shadow effect for any element. Note that the element MUST be absolutely positioned,
and the shadow does not provide any shimming. This should be used only in simple cases -- for more advanced
functionality that can also provide the same shadow effect, see the
Ext.Layer class.
Defined By
Config Options
The shadow display mode. Supports the following options:<div class="mdetail-params">
sides : Shadow displays on both...
The shadow display mode. Supports the following options:
- sides : Shadow displays on both sides and bottom only
- frame : Shadow displays equally on all four sides
- drop : Traditional bottom-right drop shadow
The number of pixels to offset the shadow from the element (defaults to 4)
The number of pixels to offset the shadow from the element (defaults to 4)
Defined By
Methods
Create a new Shadow
Create a new Shadow
Parameters
- config : Object
The config object
Returns
Returns true if the shadow is visible, else false
Returns true if the shadow is visible, else false
Returns
realign(
Number left, Number top, Number width, Number height)
: Void
Direct alignment when values are already available. Show must be called at least once before
calling this method to e...
Direct alignment when values are already available. Show must be called at least once before
calling this method to ensure it is initialized.
Parameters
- left : Number
The target element left position
- top : Number
The target element top position
- width : Number
The target element width
- height : Number
The target element height
Returns
Adjust the z-index of this shadow
Adjust the z-index of this shadow
Parameters
- zindex : Number
The new z-index
Returns
show(
Mixed targetEl)
: Void
Displays the shadow under the target element
Displays the shadow under the target element
Parameters
Returns