gpt4 book ai didi

javascript - 我如何在 Ext JS 中添加选项卡

转载 作者:行者123 更新时间:2023-12-02 16:00:20 26 4
gpt4 key购买 nike

这是我的面板,我想在此面板中添加选项卡。我在这里尝试了很多示例,但没有成功。这是我的代码。

this.Tab = new Ext.Panel({        title: 'PG Routing',        //iconCls:'mrc',        layout:'border',        border:false,        width:1000,            height:600,        closable:true,        id:'pgrouting_tab',        items:[this.addnewchannelform]             });

最佳答案

您应该尝试使用Ext.tab.Panel而不是扩展面板。看看this示例:

Ext.create('Ext.tab.Panel', {
width: 400,
height: 400,
renderTo: document.body,
items: [
{
title: 'Foo'
},
{
title: 'Bar',
tabConfig: {
title: 'Custom Title',
tooltip: 'A button tooltip'
}
}
]
});

关于javascript - 我如何在 Ext JS 中添加选项卡,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31265431/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com