Properties Methods Events Config Options Direct Link
Observable
  Component
    BoxComponent
      Container
        Panel
          Window

Class CQ.Ext.Window

Package:CQ.Ext
Class:Window
Subclasses:Dialog, IframeDialog
Extends:CQ.Ext.Panel
Clientlib:cq.widgets
xtype:window

A specialized panel intended for use as an application window. Windows are floated, resizable, and draggable by default. Windows can be maximized to fill the viewport, restored to their prior size, and can be minimized.

Windows can also be linked to a CQ.Ext.WindowGroup or managed by the CQ.Ext.WindowMgr to provide grouping, activation, to front, to back and other application-specific behavior.

By default, Windows will be rendered to document.body. To constrain a Window to another element specify renderTo.

Note: By default, the close header tool destroys the Window resulting in destruction of any child Components. This makes the Window object, and all its descendants unusable. To enable re-use of a Window, use closeAction: 'hide'.

Config Options

Config Options Defined By
  allowDomMove : Boolean
Whether the component can move the Dom node when rendering (defaults to true).
Component
  animateTarget : String/Element
Id or element from which the window should animate while opening (defaults to null with no animation).
Window
  baseCls : String
The base CSS class to apply to this panel's element (defaults to 'x-window').
Window
  disabled : Boolean
Render this component disabled (default is false).
Component
  disabledClass : String
CSS class added to the component when it is disabled (defaults to 'x-item-disabled').
Component
  hideAnimDuration : Number
The number of seconds that the window hide animation takes if enabled. Defaults to 0.25
Window
  initHidden : Boolean
Deprecated:
True to hide the window until show() is explicitly called (defaults to true).
Window
  maximized : Boolean
True to initially display the window in a maximized state. (Defaults to false).
Window
  minHeight : Number
The minimum height in pixels allowed for this window (defaults to 100). Only applies when resizable = true.
Window
  minWidth : Number
The minimum width in pixels allowed for this window (defaults to 200). Only applies when resizable = true.
Window
  pageX : Number
The page level x coordinate for this component if contained within a positioning container.
BoxComponent
  pageY : Number
The page level y coordinate for this component if contained within a positioning container.
BoxComponent
  resizable : Boolean
True to allow user resizing at each edge and corner of the window, false to disable resizing (defaults to true).
Window
  showAnimDuration : Number
The number of seconds that the window show animation takes if enabled. Defaults to 0.25
Window

Public Properties

Property Defined By
  buttons : Array
This Panel's Array of buttons as created from the buttons config property. Read only.
Panel
  bwrap : CQ.Ext.Element
The Panel's bwrap Element used to contain other Panel elements (tbar, body, bbar, footer). See bodyCfg. Read-only.
Panel
  collapsed : Boolean
True if this panel is collapsed. Read-only.
Panel
  disabled : Boolean
True if this component is disabled. Read-only.
Component
  header : CQ.Ext.Element
The Panel's header Element. Read-only.

This Element is used to house the title and tools


Note: see the Note for el also.

Panel
  hidden : Boolean
True if this component is hidden. Read-only.
Component
  initialConfig : Object
This Component's initial configuration specification. Read-only.
Component
  items : MixedCollection
The collection of components in this container as a CQ.Ext.util.MixedCollection
Container
  onHide : Object
Method that is called immediately before the hide event is fired. Defaults to CQ.Ext.emptyFn.
Window
  onShow : Object
Method that is called immediately before the show event is fired. Defaults to CQ.Ext.emptyFn.
Window
  refOwner : CQ.Ext.Container The
Component
  rendered : Boolean
True if this component has been rendered. Read-only.
Component

Public Methods

Method Defined By

Public Events

Event Defined By