Simple class that can provide a shadow effect for any element. Note that the element MUST be absolutely positioned,
+
Package: | Ext |
Defined In: | Shadow.js |
Class: | Shadow |
Extends: | Object |
|
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.
Config Options
|
| mode : StringThe shadow display mode. Supports the following options:<div class="mdetail-params">
+functionality that can also provide the same shadow effect, see the Ext.Layer class. Config Options|
| mode : StringThe 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
- | Shadow | | offset : String The number of pixels to offset the shadow from the element (defaults to 4) | Shadow |
Public PropertiesThis class has no public properties. Public Methods|
| Shadow( Object config )
- Create a new Shadow Create a new Shadow Parameters:config : ObjectThe config object Returns: | Shadow | | hide()
- :
- void | Shadow | | isVisible()
- :
- voidReturns true if the shadow is visible, else false Returns true if the shadow is visible, else false | Shadow | | realign( Number left , Number top , Number width , Number height )
- :
- voidDirect alignment when values are already available. Show must be called at least once before
+ | Shadow | | offset : String The number of pixels to offset the shadow from the element (defaults to 4) | Shadow |
Public PropertiesThis class has no public properties. Public Methods|
| Shadow( Object config )
+ Create a new Shadow Create a new Shadow Parameters:config : ObjectThe config object Returns: | Shadow | | hide()
+ :
+ void | Shadow | | isVisible()
+ :
+ voidReturns true if the shadow is visible, else false Returns true if the shadow is visible, else false | Shadow | | realign( Number left , Number top , Number width , Number height )
+ :
+ voidDirect 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 : NumberThe target element left position top : NumberThe target element top position width : NumberThe target element width height : NumberThe target element height Returns: | Shadow | | setZIndex( Number zindex )
- :
- voidAdjust the z-index of this shadow Adjust the z-index of this shadow Parameters:zindex : NumberThe new z-index Returns: | Shadow | | show( Mixed targetEl )
- :
+calling this method to ensure it is initialized.Parameters:left : NumberThe target element left position top : NumberThe target element top position width : NumberThe target element width height : NumberThe target element height Returns: | Shadow | | setZIndex( Number zindex )
+ :
+ voidAdjust the z-index of this shadow Adjust the z-index of this shadow Parameters:zindex : NumberThe new z-index Returns: | Shadow | | show( Mixed targetEl )
+ :
voidDisplays the shadow under the target element Displays the shadow under the target element | Shadow |
Public EventsThis class has no public events.
\ No newline at end of file
|