`
348725767
  • 浏览: 103747 次
  • 性别: Icon_minigender_1
  • 来自: 温州
社区版块
存档分类
最新评论

sencha touch2学习笔记(五)----Carousel 可滑动换页

阅读更多

Carousel是一个可以滑动的组件,就如android的ViewFlipper。只是Carousel更好看。

代码如下:

 

Ext.application(
{
	name:"sencha",
	launch:function()
	{
		
		Ext.create(
		"Ext.Carousel",
		{
			fullscreen:true,
			direction: 'vertical',
			defaults: {
		        styleHtmlContent: true
		    },
			items:[
			{
				xtype:"list",
				items:[
				{
					xtype:"toolbar",
					dock:"top",
					title:"列表哦"
				}
				],
				store:
				{
					fields:["name"],
					data:[
					{name:"陈乃共"}
					]
				},
				itemTpl:'name'
				
			},
			{
				html:"html1",
				style:"background-color:#00FF00"
			},
			{
				html:"html1",
				style:"background-color:#0000FF"
			}
			]
		}
		)
		
	}
}
)
 
0
0
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics