Provides a registry of all Components (instances of Ext.Component or any subclass
thereof) on a page so that they can be easily accessed by component
id (see get, or the convenience method Ext.getCmp).
This object also provides a registry of available Component classes
indexed by a mnemonic code known as the Component's xtype.
-The xtype provides a way to avoid instantiating child Components
+The xtype
provides a way to avoid instantiating child Components
when creating a full, nested config object for a complete Ext page.
A child Component may be specified simply as a config object
-as long as the correct xtype is specified so that if and when the Component
+as long as the correct xtype
is specified so that if and when the Component
needs rendering, the correct type can be looked up for lazy instantiation.
-
For a list of all available xtypes, see Ext.Component.
This class is a singleton and cannot be created directly.Public Properties
|
| all : MixedCollectionThe MixedCollection used internally for the component cache. An example usage may be subscribing to
+ For a list of all available xtypes , see Ext.Component. This class is a singleton and cannot be created directly.Public Properties|
| all : MixedCollectionThe MixedCollection used internally for the component cache. An example usage may be subscribing to
events on the Mix... The MixedCollection used internally for the component cache. An example usage may be subscribing to
-events on the MixedCollection to monitor addition or removal. Read-only. | ComponentMgr |
Public Methods|
| create( Object config , Constructor defaultType )
+events on the MixedCollection to monitor addition or removal. Read-only. | ComponentMgr | | ptypes : Object The ptypes that have been registered with the component manager. | ComponentMgr | | types : Object The xtypes that have been registered with the component manager. | ComponentMgr |
Public Methods|
| create( Object config , Constructor defaultType )
:
Ext.ComponentCreates a new Component from the specified config object using the
config object's xtype to determine the class to in... Creates a new Component from the specified config object using the
config object's xtype to determine the class to instantiate. Parameters:config : ObjectA configuration object for the Component you wish to create. defaultType : ConstructorThe constructor to provide the default Component type if
-the config object does not contain a xtype. (Optional if the config contains a xtype). Returns: | ComponentMgr | | createPlugin( Object config , Constructor defaultType )
+the config object does not contain a xtype . (Optional if the config contains a xtype ).Returns: | ComponentMgr | | createPlugin( Object config , Constructor defaultType )
:
Ext.ComponentCreates a new Plugin from the specified config object using the
config object's ptype to determine the class to insta... Creates a new Plugin from the specified config object using the
config object's ptype to determine the class to instantiate. | ComponentMgr | | get( String id )
+the config object does not contain a ptype . (Optional if the config contains a ptype ).Returns: | ComponentMgr | | get( String id )
:
Ext.ComponentReturns a component by id.
For additional details see Ext.util.MixedCollection.get. | ComponentMgr | | isRegistered( Ext.Component xtype )
+For additional details see Ext.util.MixedCollection.get. | ComponentMgr | | isPluginRegistered( Ext.Component ptype )
+ :
+ BooleanChecks if a Plugin type is registered. Checks if a Plugin type is registered. | ComponentMgr | | isRegistered( Ext.Component xtype )
:
BooleanChecks if a Component type is registered. Checks if a Component type is registered. | ComponentMgr | | onAvailable( String id , Function fn , Object scope )
:
- voidRegisters a function that will be called when a specified component is added to ComponentMgr Registers a function that will be called when a specified component is added to ComponentMgr | ComponentMgr | | register( Ext.Component c )
+ voidRegisters a function that will be called when a Component with the specified id is added to ComponentMgr. This will h... Registers a function that will be called when a Component with the specified id is added to ComponentMgr. This will happen on instantiation. | ComponentMgr | | register( Ext.Component c )
:
voidRegisters a component. Registers a component. Parameters:c : Ext.ComponentThe component Returns: | ComponentMgr | | registerPlugin( String ptype , Constructor cls )
:
|
|