【问题标题】:How i add tabs in Ext JS我如何在 Ext JS 中添加标签
【发布时间】:2015-09-24 18:08:26
【问题描述】:

这是我的面板,我想在这个面板中添加标签。我从这里尝试了很多示例,但没有成功.. 这是我的代码。

this.Tab = new Ext.Panel({ 标题:'PG路由', //iconCls:'mrc', 布局:'边框', 边框:假, 宽度:1000, 高度:600, 可关闭:真, id:'pgrouting_tab', 项目:[this.addnewchannelform] });

【问题讨论】:

    标签: javascript extjs


    【解决方案1】:

    您应该尝试使用Ext.tab.Panel 而不是 Ext.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'
                }
            }
        ]
    });
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-03-20
      • 1970-01-01
      • 1970-01-01
      • 2016-06-26
      • 1970-01-01
      相关资源
      最近更新 更多