Provides a registry of available Plugin classes indexed by a mnemonic code known as the Plugin's ptype.
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
needs rendering, the correct type can be looked up for lazy instantiation.
For a list of all available xtypes
, see Ext.Component.
all : Ext.util.MixedCollection Contains all of the items currently managed
Contains all of the items currently managed
create(
Object config, Constructor defaultType ) : Ext.Component
Creates 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.
Parameters
Returns
- Ext.Component The newly instantiated Plugin.
each(
Object fn, Object scope ) : Void
Executes the specified function once for each item in the collection.
Returning false from the function will cease it...
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:
Parameters
Returns
findByType(
String type, Boolean defaultsOnly ) : Array
Returns all plugins registered with the given type. Here, 'type' refers to the type of plugin, not its ptype.
Returns all plugins registered with the given type. Here, 'type' refers to the type of plugin, not its ptype.
Parameters
Returns
- Array All matching plugins
get(
String id ) : Ext.Component
Returns a component by id.
For additional details see Ext.util.MixedCollection.get.
Returns a component by
id.
For additional details see
Ext.util.MixedCollection.get.
Parameters
Returns
- Ext.Component The Component,
undefined
if not found, or null
if a
Class was found.
Gets the number of items in the collection.
Gets the number of items in the collection.
Checks if a Component type is registered.
Checks if a Component type is registered.
Parameters
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 ha...
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
Returns
Registers an item to be managed
Registers an item to be managed
Parameters
- item : Mixed
The item to register
Returns
Registers a new Component constructor, keyed by a new
Ext.Component.xtype.
Use this method (or its alias Ext.reg) to ...
Unregisters a component by removing it from this manager
Unregisters a component by removing it from this manager
Parameters
- item : Mixed
The item to unregister
Returns