开发者

adding a for into a tab using extjs

开发者 https://www.devze.com 2022-12-29 09:11 出处:网络
Kindly let me know how to add a form to开发者_运维技巧 a dynamically created tab in ExtJS??????????myTab.add(myForm);

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消