Sencha Documentation

Super classes

Properties

 
all : Ext.util.MixedCollection
Contains all of the items currently managed

Methods

 
create( Object config, String defaultType ) : Mixed
Creates and returns an instance of whatever this manager manages, based on the supplied type and config object

Parameters

  • config : Object
    The config object
  • defaultType : String
    If no type is discovered in the config object, we fall back to this type

Returns

  • Mixed   The instance of whatever this manager is managing
 
each( Object fn, Object scope ) : Void
Executes the specified function once for each item in the collection. Returning false from the function will cease iteration. The paramaters passed to the function are:
  • key : String

    The key of the item

  • value : Number

    The value of the item

  • length : Number

    The total number of items in the collection

Parameters

  • fn : Object
    The function to execute.
  • scope : Object
    The scope to execute in. Defaults to this.

Returns

  • Void
 
get( String id ) : Ext.Component
Returns a component by id. For additional details see Ext.util.MixedCollection.get.

Parameters

  • id : String
    The component id

Returns

  • Ext.Component   The Component, undefined if not found, or null if a Class was found.
 
getCount : Number
Gets the number of items in the collection.
 
isRegistered( Ext.Component xtype ) : Boolean
Checks if a Component type is registered.

Parameters

  • xtype : Ext.Component
    The mnemonic string by which the Component class may be looked up

Returns

  • Boolean   Whether the type is registered.
 
onAvailable( String id, Function fn, Object scope ) : Void
Registers a function that will be called when a Component with the specified id is added to the manager. This will happen on instantiation.

Parameters

  • id : String
    The component id
  • fn : Function
    The callback function
  • scope : Object
    The scope (this reference) in which the callback is executed. Defaults to the Component.

Returns

  • Void
 
register( Mixed item ) : Void
Registers an item to be managed

Parameters

  • item : Mixed
    The item to register

Returns

  • Void
 
registerType( String xtype, Constructor cls ) : Void

Registers a new Component constructor, keyed by a new Ext.Component.xtype.

Use this method (or its alias Ext.reg) to register new subclasses of Ext.Component so that lazy instantiation may be used when specifying child Components. see Ext.container.Container.items

Parameters

  • xtype : String
    The mnemonic string by which the Component class may be looked up.
  • cls : Constructor
    The new Component class.

Returns

  • Void
 
unregister( Mixed item ) : Void
Unregisters a component by removing it from this manager

Parameters

  • item : Mixed
    The item to unregister

Returns

  • Void