Class Ext.ComponentMgr
Package: | Ext |
Class: | ComponentMgr |
Extends: | Object |
Defined In: | Component.js |
Provides a common registry of all components on a page so that they can be easily accessed by component id.
This class is a singleton and cannot be created directly.
Properties
-
Methods
-
Events
Public Properties
This class has no public properties.
Public Methods
|
get(String id ) : void |
ComponentMgr |
Returns a component by id |
|
onAvailable(String id , Funtction fn , Object scope ) : void |
ComponentMgr |
Registers a function that will be called when a specified component is added to ComponentMgr |
Public Events
This class has no public events.
Method Details
get
public function get(String id
)
Returns a component by id
Parameters:
id
: StringThe component id
Returns:
This method is defined by ComponentMgr.
onAvailable
public function onAvailable(String id
, Funtction fn
, Object scope
)
Registers a function that will be called when a specified component is added to ComponentMgr
This method is defined by ComponentMgr.