ExtJS - Component Model

 

ExtJS Component Hierarchy

  • Viewport in the base component that contains container and components .
  • Container is a special type of component that holds other components.
  • Components inside containers will be nested by tree like structure.

var p1 = Ext.create('Ext.panel.Panel', {
    title: ' Panel 1',
    html: '1 Panel'
});

var p2 = Ext.create('Ext.panel.Panel', {
    title: ' Panel 2',
    html: '2 Panel'
});

Ext.create('Ext.container.Viewport', {
    items: [ p1, p2 ]
});




No comments

Powered by Blogger.