Clear Up
SharpKit Reference

Shadow Class

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.

Namespace: Ext

Base Types


Name Description
Shadow(object) Creates new Shadow.


Name Description
hide() Hides this shadow
isVisible() Returns true if the shadow is visible, else false
realign(JsNumber, JsNumber, JsNumber, JsNumber) Direct alignment when values are already available. Show must be called at least once before calling this method to ensure it is initialized.
setOpacity(JsNumber) Sets the opacity of the shadow
setZIndex(JsNumber) Adjust the z-index of this shadow
show(object) Displays the shadow under the target element


Name Description
mode 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
  • offset The number of pixels to offset the shadow from the element Defaults to: 4
    © Copyright 2005-2011 SharpKit. All rights reserved.