tags:

views:

38

answers:

2

Kindly let me know how to add a form to a dynamically created tab in ExtJS??????????

A: 
myTab.add(myForm);
myTab.doLayout();
bmoeskau
A: 
var tabpanel = new Ext.TabPanel({
  activeTab: 0,
  layoutOnTabChange: true,
  items: [{
    title: "A tab"
  }]
});

var new_tab = new Ext.form.FormPanel({
  title: "A form",
  closable: true
});

tabpanel.add(new_tab);

Take a look at the examples though.

Lloyd