Carousel是一个可以滑动的组件,就如android的ViewFlipper。只是Carousel更好看。
代码如下:
代码如下:
01.
Ext.application(
02.
{
03.
name:
"sencha"
,
04.
launch:
function
()
05.
{
06.
07.
Ext.create(
08.
"Ext.Carousel"
,
09.
{
10.
fullscreen:
true
,
11.
direction:
'vertical'
,
12.
defaults: {
13.
styleHtmlContent:
true
14.
},
15.
items:[
16.
{
17.
xtype:
"list"
,
18.
items:[
19.
{
20.
xtype:
"toolbar"
,
21.
dock:
"top"
,
22.
title:
"列表哦"
23.
}
24.
],
25.
store:
26.
{
27.
fields:[
"name"
],
28.
data:[
29.
{name:
"陈乃共"
}
30.
]
31.
},
32.
itemTpl:
'name'
33.
34.
},
35.
{
36.
html:
"html1"
,
37.
style:
"background-color:#00FF00"
38.
},
39.
{
40.
html:
"html1"
,
41.
style:
"background-color:#0000FF"
42.
}
43.
]
44.
}
45.
)
46.
47.
}
48.
}
49.
)
作者:色即是空,空即是色
原文:http://chennaigong.iteye.com/blog/1562265