sencha touch アプリを作成していますが、デザインにはタブ バーにセグメント化されたボタンが必要です。
sencha の組み込み機能でこれを行う簡単な方法はありますか、それとも自分で作成する必要がありますか?
extend: 'Ext.TabPanel',
requires: [
'Ext.SegmentedButton',
],
xtype: 'album',
id: 'album',
fullscreen: true,
config: {
tabBar: {
layout: {
pack: 'center',
},
items: {
xtype: 'segmentedbutton',
allowDepress: false,
listeners: {
initialize: function() {
Ext.SegmentedButton.implement({
setActive: function(activeItem) {
this.setActiveItem(activeItem);
}
});
}
}
}
},
autoDestroy: true,
activeItem: 1,
items: [
{
title: 'HIGHLIGHTS',
xtype: 'highlightview',
id: 'highlightView'
},
{
title: 'KATEGORIEN',
xtype: 'categoryView',
id: 'categoryView',
},
{
title: 'SUCHE',
xtype: 'searchView',
id: 'searchView',
}
],
}
それが私がこれまでに試したことです。リスナーは のエラーを回避するために存在しますが[Object] Object has no method 'setActive'
、希望する動作にはなりません。