Sencha Documentation

A mixin to add floating capability to a Component
Defined By

Config Options

 
Specifies whether the floated component should be automatically focused when it is brought to the front. Defaults to ...
Specifies whether the floated component should be automatically focused when it is brought to the front. Defaults to true.
 
Specifies whether the floating component should be given a shadow. Set to true to automatically create an Ext.Shadow,...
Specifies whether the floating component should be given a shadow. Set to true to automatically create an Ext.Shadow, or a string indicating the shadow's display Ext.Shadow-mode. Set to false to disable the shadow. (Defaults to 'sides'.)
Defined By

Methods

 
alignTo( Mixed element, String position, [Array offsets]) : Component
Aligns this floating Component to the specified element
Aligns this floating Component to the specified element

Parameters

  • element : Mixed
    The element to align to.
  • position : String
    (optional, defaults to "tl-bl?") The position to align to (see Ext.core.Element-alignTo for more details).
  • offsets : Array
    (optional) Offset the positioning by [x, y]

Returns

  • Component   this
 
Center this Component in its container.
Center this Component in its container.

Returns

  • Component   this
 
constructor( config undefined) : Void
Construction of a floating Component involves transforming the el into a Layer based around that el.
Construction of a floating Component involves transforming the el into a Layer based around that el.

Parameters

  • : config

Returns

  • Void
 
doConstrain( Mixed constrainTo) : Void
Moves this floating Component into a constrain region. By default, this Component is constrained to be within the con...

Moves this floating Component into a constrain region.

By default, this Component is constrained to be within the container it was added to, or the element it was rendered to.

An alternative constraint may be passed.

Parameters

  • constrainTo : Mixed
    Optional. The Element or Region into which this Component is to be constrained.

Returns

  • Void
 
Makes this the active Component by showing its shadow, or deactivates it by hiding its shadow. This method also fire...
Makes this the active Component by showing its shadow, or deactivates it by hiding its shadow. This method also fires the activate or deactivate event depending on which action occurred. This method is called internally by Ext.ZIndexManager.

Parameters

  • active : Boolean
    True to activate the Component, false to deactivate it (defaults to false)

Returns

  • Void
 
Sends this Component to the back of (lower z-index than) any other visible windows
Sends this Component to the back of (lower z-index than) any other visible windows

Returns

  • Component   this
 
toFront( [Boolean preventFocus]) : Component
Brings this floating Component to the front of any other visible, floating Components managed by the same ZIndexManag...

Brings this floating Component to the front of any other visible, floating Components managed by the same ZIndexManager

If this Component is modal, inserts the modal mask just below this Component in the z-index stack.

Parameters

  • preventFocus : Boolean
    (optional) Specify true to prevent the Component from being focused.

Returns

  • Component   this