adding a for into a tab using extjs
Kindly let me know how to add a form to开发者_运维技巧 a dynamically created tab in ExtJS??????????
myTab.add(myForm);
myTab.doLayout();
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.
精彩评论