sencha touch之carousel
2013-09-30 10:42
274 查看
carousel组件是个非常不错的东东,自带可滑动的效果,效果如下图
上面部分可以左右滑动,下面部分可以上下滑动,效果还是不错的,app程序中很有用的布局
代码如下:
上面部分可以左右滑动,下面部分可以上下滑动,效果还是不错的,app程序中很有用的布局
代码如下:
Ext.application({ name:'itKingApp', /** * Carousel 组件 */ launch:function(){ var carousel1=Ext.create('Ext.Carousel',{ ui:'dark', flex:1, direction:'horizontal', items:[ { html:'left', style:'background-color:pink' }, { html:'center', style:'background-color:green' }, { html:'right', style:'background-color:blue' } ] }); var carousel2=Ext.create('Ext.Carousel',{ ui:'dark', flex:1, direction:'vertical', items:[ { html:'left', style:'background-color:yellow' }, { html:'center', style:'background-color:gray' }, { html:'right', style:'background-color:blue' } ] }) var panel=Ext.create('Ext.Panel',{ layout:{ type:'vbox'}, items:[carousel1,carousel2] }); Ext.Viewport.add(panel) } })
相关文章推荐
- Android布局的小窍门?
- Web布局连载——两栏固定布局(五)
- 转载:On having layout
- 样式表CSS布局经验
- css网页布局中注意的几个问题小结
- DL.DT.DD实现左右的布局简单例子第1/2页
- 使用CSS框架布局的缺点和优点小结
- div+CSS网页布局的意义与副作用原因小结第1/2页
- CSS顶级技巧大放送,div+css布局必知
- 用div实现像table一样的布局方法
- 精彩的Bootstrap案例分享 重点在注释!(选项卡、栅格布局)
- sencha ext js 6 快速入门(必看)
- android自定义RadioGroup可以添加多种布局的实现方法
- 瀑布流布局并自动加载实现代码
- SWT(JFace)体验之RowLayout布局
- Extjs学习笔记之七 布局
- android layout XML解析错误的解决方法
- android LinearLayout 布局实例代码
- Android 布局控件之LinearLayout详细介绍
- Android开发之LinearLayout布局详解