|
Voila un exemple de ce qu'on peut faire avec Ext Core. Le carrousel, un wigdet à la mode et qui fait toujours son petit effet. Rien d'incroyable pourtant, des images qui défilent en boucle automatiquement ou manuellement. |
Dans cette version la déclaration de l'objet ressemble à ca :
new Ext.ux.CarouselPanel({ enableLoop:true ,enableSlideShow:2000 ,enableButtons:true ,deferSlideShow:2000 ,itemSize:{ width:400 ,height:200 } ,items:[ {html:"item 1", image:"http://www.soreia.com/images/developpement-soreia.png"}, {html:"item 2", image:"http://amazingdata.com/mediadata57/Image/crazy_funny_amazing_shocking_awesome_sexy_200907311355002837.jpg"}, {html:"item 3", image:"http://1.bp.blogspot.com/_Bf6UzKbHR7c/SAAQxLa6RwI/AAAAAAAAA5w/EXuyb71tUg8/s400/lolcats-funny-pictures-angermanagement.jpg"} ] ,buttons:[ {width:70, image:"http://icons3.iconfinder.netdna-cdn.com/data/icons/glaze/64x64/actions/previous.png"} ,{width:70, image:"http://icons3.iconfinder.netdna-cdn.com/data/icons/glaze/64x64/actions/next.png"} ] }).render();