sencha touch的tabpanel里tab比较多时,使tab子标签滚动
2014-10-30 15:09
477 查看
Ext.create('Ext.tab.Panel', {
fullscreen: true,//设置panel全屏
tabBar: { //设置tabBar配置项,
docked: 'bottom',//固定在底部
layout: { //设置每个tab的位置为居中
pack: 'center',
align: 'center'
},
scrollable: { //设置可滚动的属性
direction: 'horizontal',
indicators: false
}
},
ui : 'light',
defaults: { //设置默认的html,这样每个tab子页面都显示下面的html
html: "Both toolbars and tabbars have built-in, ready to use icons. Styling custom icons is no hassle.<p><small>If you can't see all of the buttons below, try scrolling left/right.</small></p>"
},
// Add a bunch of items into the tabpanel, with iconCls'
items: [ //设置每个tab的图标(sencha自带的)和标题,其中title是必须 的
{ iconCls: 'bookmarks', title: 'Bookmarks' },
{ iconCls: 'download', title: 'Download' },
{ iconCls: 'favorites', title: 'Favorites' },
{ iconCls: 'info', title: 'Info' },
{ iconCls: 'more', title: 'More' },
{ iconCls: 'search', title: 'Search' },
{ iconCls: 'settings', title: 'Settings' },
{ iconCls: 'team', title: 'Team' },
{ iconCls: 'time', title: 'Time' },
{ iconCls: 'user', title: 'User' },
]
});
fullscreen: true,//设置panel全屏
tabBar: { //设置tabBar配置项,
docked: 'bottom',//固定在底部
layout: { //设置每个tab的位置为居中
pack: 'center',
align: 'center'
},
scrollable: { //设置可滚动的属性
direction: 'horizontal',
indicators: false
}
},
ui : 'light',
defaults: { //设置默认的html,这样每个tab子页面都显示下面的html
html: "Both toolbars and tabbars have built-in, ready to use icons. Styling custom icons is no hassle.<p><small>If you can't see all of the buttons below, try scrolling left/right.</small></p>"
},
// Add a bunch of items into the tabpanel, with iconCls'
items: [ //设置每个tab的图标(sencha自带的)和标题,其中title是必须 的
{ iconCls: 'bookmarks', title: 'Bookmarks' },
{ iconCls: 'download', title: 'Download' },
{ iconCls: 'favorites', title: 'Favorites' },
{ iconCls: 'info', title: 'Info' },
{ iconCls: 'more', title: 'More' },
{ iconCls: 'search', title: 'Search' },
{ iconCls: 'settings', title: 'Settings' },
{ iconCls: 'team', title: 'Team' },
{ iconCls: 'time', title: 'Time' },
{ iconCls: 'user', title: 'User' },
]
});
相关文章推荐
- Sencha Touch 2 快速入门系列(四)-- 组件之标签面板(TabPanel)
- sencha-touch开发的一些tips(tabPanel,提示框,store数据修改)
- sencha touch 模仿tabpanel导航栏TabBar(2013-11-7)
- [Sencha Touch/ExtJS] Container/Panel/List等容器的滚动(到顶部)的方法
- Sencha Touch 2.0 组件:Carousels、List、TabPanel 之用法简介
- Sencha touch 开发系列:容器组件:tabpanel,carousels
- sencha touch 2 tabpanel中List的不显示问题,解决方案
- sencha touch TabPanel 加入导航按钮(向左向右按钮) 以及Carousel插件(2014-11-7)
- Sencha Touch中TabPanel组件的使用(转)
- sencha touch之panel和tabpanel
- Sencha touch 开发系列:容器组件:tabpanel,carousels
- sencha touch 模仿tabpanel导航栏TabBar的实例代码
- Sencha-touch之TabPanel的Tab在点击时实施事件
- sencha touch NavigationView 嵌套 TabPanel 的问题
- sencha touch 2 tabpanel中List的不显示问题,解决方案
- Sencha Touch中TabPanel组件的使用
- Sencha touch Panel之间的跳转(如不使用TabPanel或者Carousel控件而产生跳转的动画效果)
- sencha touch 模仿tabpanel导航栏TabBar的实现代码
- sencha touch 模仿tabpanel导航栏TabBar的实例代码
- senchatouch tabPanel 在面板跳转时执行自定义函数 handler()