toot1981
7 Dec 2010, 8:01 AM
Hi,
i'm trying to build an app that uses a tabbar as main panel with 5 items. Inside of item one I'm trying to use tabs as docked item. There are no syntax errors or so, the app is running wihout errors, but the size of the tabs is really huge. Something went wrong, can someone help?
Ext.setup({
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: false,
onReady: function() {
var tabs = new Ext.TabPanel({
type: 'dark',
sortable: true,
items: [{
title: 'Tab 1',
html: '1',
cls: 'card1'
}, {
title: 'Tab 2',
html: '2',
cls: 'card2'
}]
});
var tabpanel = new Ext.TabPanel({
tabBar: {
dock: 'bottom',
layout: {
pack: 'center'
}
},
fullscreen: true,
ui: 'dark',
cardSwitchAnimation: {
type: 'slide',
cover: true
},
defaults: {
scroll: 'vertical'
},
items: [{
title: 'Tabs',
iconCls: 'info',
dockedItems: tabs
}, {
title: 'Favourites',
html: '<h1>Favorites Card</h1>',
iconCls: 'favorites',
cls: 'card2'
}, {
title: 'Downloads',
html: '<h1>Downloads Card</h1>',
cls: 'card3',
iconCls: 'download'
}, {
title: 'Settings',
html: '<h1>Settings Card</h1>',
cls: 'card4',
iconCls: 'settings'
}, {
title: 'User',
html: '<h1>User Card</h1>',
cls: 'card5',
iconCls: 'user'
}]
});
}
});
i'm trying to build an app that uses a tabbar as main panel with 5 items. Inside of item one I'm trying to use tabs as docked item. There are no syntax errors or so, the app is running wihout errors, but the size of the tabs is really huge. Something went wrong, can someone help?
Ext.setup({
icon: 'icon.png',
tabletStartupScreen: 'tablet_startup.png',
phoneStartupScreen: 'phone_startup.png',
glossOnIcon: false,
onReady: function() {
var tabs = new Ext.TabPanel({
type: 'dark',
sortable: true,
items: [{
title: 'Tab 1',
html: '1',
cls: 'card1'
}, {
title: 'Tab 2',
html: '2',
cls: 'card2'
}]
});
var tabpanel = new Ext.TabPanel({
tabBar: {
dock: 'bottom',
layout: {
pack: 'center'
}
},
fullscreen: true,
ui: 'dark',
cardSwitchAnimation: {
type: 'slide',
cover: true
},
defaults: {
scroll: 'vertical'
},
items: [{
title: 'Tabs',
iconCls: 'info',
dockedItems: tabs
}, {
title: 'Favourites',
html: '<h1>Favorites Card</h1>',
iconCls: 'favorites',
cls: 'card2'
}, {
title: 'Downloads',
html: '<h1>Downloads Card</h1>',
cls: 'card3',
iconCls: 'download'
}, {
title: 'Settings',
html: '<h1>Settings Card</h1>',
cls: 'card4',
iconCls: 'settings'
}, {
title: 'User',
html: '<h1>User Card</h1>',
cls: 'card5',
iconCls: 'user'
}]
});
}
});