Manual:Widgets:Panels:ContentPanel (Legacy)

This version of our Learning Center is unmaintained.
This article may be out-of-date or contain incorrect information.
Please visit the new Sencha Learning Center for up-to-date material.

Go to the new Sencha Learning Center

From Sencha - Learn

Jump to: navigation, search

Ext Manual > Widgets > Layouts >

Ext.ContentPanel

Examples

dialog = new Ext.LayoutDialog("hello-dlg", { 
   modal:true,
   width:600,
   height:400,
   shadow:true,
   minWidth:300,
   minHeight:300,
   proxyDrag: true,
   west: {
      split:true,
      initialSize: 150,
      minSize: 100,
      maxSize: 250,
      titlebar: true,
      collapsible: true,
      animate: true
   },
   center: {
      autoScroll:true,
      tabPosition: 'top',
      closeOnTab: true,
      alwaysShowTabs: true
   }
});
var layout = dialog.getLayout();
layout.beginUpdate();
layout.add('west', new Ext.ContentPanel('west', {title: 'West'}));
layout.add('center', new Ext.ContentPanel(Ext.id(), {
   autoCreate:true, title: 'Another Tab', background:true}));
layout.endUpdate();

Links

This page was last modified on 22 August 2007, at 09:33. This page has been accessed 10,374 times.