[英]How to apply style for Ext js xtype tabpanel using style property?
[英]How to disable tabpanel navigation using arrow keys in Ext JS?
當標簽處於焦點位置時,可以使用箭頭鍵( → , ← )在標簽之間導航。 我想禁用此行為。
示例標簽面板: http : //examples.sencha.com/extjs/6.0.2/examples/kitchensink/#basic-tabs
您要查找的配置位於Ext.tab.Bar類中,它稱為ActivateOnFocus。
這是修改為使用箭頭鍵進行avoi導航的選項卡面板示例
Ext.create('Ext.tab.Panel', {
width: 400,
height: 400,
renderTo: document.body,
tabBar: {
activateOnFocus: false
},
items: [{
title: 'Foo'
}, {
title: 'Bar',
tabConfig: {
title: 'Custom Title',
tooltip: 'A button tooltip'
}
}]
});
這對我有用!
Ext.create('Ext.tab.Panel', {
width: 400,
height: 400,
renderTo: document.body,
tabBar: {
defaults: {
flex: 1
}
},
items: [{
title: 'Foo'
}, {
title: 'Bar',
tabConfig: {
title: 'Custom Title',
tooltip: 'A button tooltip'
}
}]
});
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.