Roo.util.Observable
Roo.XComponent 

		   

Class Roo.XComponent

Package:Roo
Defined In: Roo/XComponent.js.
Class:XComponent
Extends: Roo.util.Observable
A delayed Element creator...
Or a way to group chunks of interface together.

Mypart.xyx = new Roo.XComponent({

parent : 'Mypart.xyz', // empty == document.element.!!
order : '001',
name : 'xxxx'
region : 'xxxx'
disabled : function() {}

tree : function() { // return an tree of xtype declared components
var MODULE = this;
return
{
xtype : 'NestedLayoutPanel',
// technicall
}
]
})


It can be used to build a big heiracy, with parent etc.
or you can just use this to render a single compoent to a dom element
MYPART.render(Roo.Element | String(id) | dom_element )
Class Comments / Notes => [Add Your comment/notes about this class]
Config Options (Usually are also Properties)
Options Defined By
Public Properties
Property Description Defined By
 
Roo.XComponent.buildCompleted : Boolean
True when the builder has completed building the interface.
True when the builder has completed building the interface.
Roo.XComponent
 
Roo.XComponent.build_from_html : true (default false)
Build elements from html - used by bootstrap HTML stuff
- this is cleared after build is completed
Build elements from html - used by bootstrap HTML stuff
- this is cleared after build is completed
Roo.XComponent
 
Roo.XComponent.elmodules : of Roo.XComponent
array of modules to be created by which use ID
array of modules to be created by which use ID
Roo.XComponent
 
Roo.XComponent.event :
Event Object.
Event Object.
Roo.XComponent
 
Roo.XComponent.hideProgress : Boolean
true to disable the building progress bar.
true to disable the building progress bar.. usefull on single page renders.
Roo.XComponent
 
Roo.XComponent.modules : of Roo.XComponent
array of modules to be created by registration system.
array of modules to be created by registration system.
Roo.XComponent
 
Roo.XComponent.on :
wrapper for event.on - aliased later.
wrapper for event.on - aliased later..
Typically use to register a event handler for register:

eg. Roo.XComponent.on('register', function(comp) { comp.disable = true } );
Roo.XComponent
 
Roo.XComponent.topModule : Object
the upper most module - uses document.element as it's constructor.
the upper most module - uses document.element as it's constructor.
Roo.XComponent
Public Methods
Method Defined By
Events
Event Defined By
Documentation generated by Introspection Doc Generator on Wed Aug 20 2014 13:45:22 GMT+0800 (HKT) Based on JsDoc Toolkit