Clear Up
SharpKit Reference

Layer Class

An extended Ext.Element object that supports a shadow and shim, constrain to viewport and automatic maintaining of shadow/shim positions.

Namespace: Ext



Name Description
cls CSS class to add to the element
constrain False to disable constrain to viewport. Defaults to: true
dh DomHelper object config to create element with. Defaults to: {tag: "div", cls: "x-layer"}
hideMode A String which specifies how this Layer will be hidden. Values may be:
  • 'display' : The Component will be hidden using the display: none style.
  • 'visibility' : The Component will be hidden using the visibility: hidden style.
  • 'offsets' : The Component will be hidden by absolutely positioning it out of the visible area of the document. This is useful when a hidden Component must maintain measurable dimensions. Hiding using display results in a Component having zero dimensions.
  • shadow True to automatically create an Ext.Shadow, or a string indicating the shadow's display Ext.Shadow.mode. False to disable the shadow. Defaults to: false
    shadowOffset Number of pixels to offset the shadow Defaults to: 4
    shim False to disable the iframe shim in browsers which need one. Defaults to: true
    useDisplay Defaults to use css offsets to hide the Layer. Specify true to use css style 'display:none;' to hide the Layer. Defaults to: false
    visibilityCls The CSS class name to add in order to hide this Layer if this layer is configured with hideMode: 'asclass'
    zindex Starting z-index. Defaults to: 11000


    Name Description
    setZIndex(JsNumber) Sets the z-index of this layer and adjusts any shadow and shim z-indexes. The layer z-index is automatically incremented depending upon the presence of a shim or a shadow in so that it always shows above those two associated elements. Any shim, will be assigned the passed z-index. A shadow will be assigned the next highet z-index, and the Layer's element will receive the highest z-index.
    © Copyright 2005-2011 SharpKit. All rights reserved.