var tabs = Ext.widget('tabpanel', {
renderTo: 'tabs',
resizeTabs: true,
enableTabScroll: true,
width: 600,
height: 250,
defaults: {
autoScroll: true,
bodyPadding: 10
},
items: [{
title: 'Tab 1003',
iconCls: 'tabs',
//ref:'http://www.yahoo.com',
//hrefTarget:'_self',
html: '<div style="width:100%; height:100%; background-color:#cccccc;"><iframe src="http://www.w3schools.com" frameborder=0 style="width:100%; height:100%;"></iframe></div>',
closable: true,
focusOnToFront : true
}],.........................
当有几个标签时,如何关注第一个标签? 我使用focusOnToFront,但它看起来不起作用。
答案 0 :(得分:1)
答案 1 :(得分:0)
添加activeTab
属性:
var tabs = Ext.widget('tabpanel', {
activeTab: 0,
...