1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51
|
new Ext.TabPanel({
fullscreen : true,
tabBar: {
dock: 'bottom',
ui: 'light',
layout: {
pack: 'center'
}
},
cardSwitchAnimation: {
type: 'slide',
cover: true
},
defaults: {
scroll: 'vertical'
},
items: [{
title: 'About',
html: '<p>Docking tabs to the bottom will automatically change their style. The tabs below are ui="light", though the standard type is dark. Badges (like the 4 below) can be added by setting <code>badgeText</code> when creating a tab/card or by using <code>setBadge()</code> on the tab later.</p>',
iconCls: 'info',
cls: 'card card1'
},
{
title: 'Favorites',
html: 'Favorites Card',
iconCls: 'favorites',
cls: 'card card2',
badgeText: '4'
},
{
title: 'Downloads',
id: 'tab3',
html: 'Downloads Card',
badgeText: 'Text can go here too, but it will be cut off if it is too long.',
cls: 'card card3',
iconCls: 'download'
},
{
title: 'Settings',
html: 'Settings Card',
cls: 'card card4',
iconCls: 'settings'
},
{
title: 'User',
html: 'User Card',
cls: 'card card5',
iconCls: 'user'
}]
}) |
Partager