2012-06-22 33 views
0

//這裏是上圓盤傳送帶代碼顯示某些圖像我的旋轉視圖低於如何在另一個圓盤傳送帶的頂部添加轉盤(小尺寸)

Ext.define("App.view.GView", 
{ 
    extend:'Ext.Carousel', 
    xtype:'GView', 
    requires:[ 
     'Ext.carousel.Carousel', 
     'Ext.Img', 
     'Ext.Loader' 
    ], 

    config:{ 
     title:'XYZ', 
     iconCls:'home', 
     layout:{ 
      type:'vbox', 
      pack:'center', 
      align:'center' 
     }, 
     directionLock:true, 
     fullscreen:true, 
     items:[ 
      { 
       docked:'top', 
       xtype:'titlebar', 
       cls:'titleBar', 
       title:'Gallery' 
      } 
     ], 

     xtype:'carousel', 
     id:'gallerycarousel' 
    } 
}); 

//這是結合數據到我的控制器的代碼

var items = []; Temp array 
    var xyz= [{ urlL}] My image array 

    Ext.each(images, function (picture) { 
    items.push({ 
      xtype: 'image', 
      cls: 'centerImage', 
      src: picture.url 
      }); 
    }); 
    floorCarousel.setItems(items); 
    floorCarousel.setActiveItem(0); 

//我的問題是如何增加一個轉盤在頂部這個旋轉木馬,當我走得比第二輪播項目第一輪播項也應該移動,反之亦然。所以第一輪播是在頂部底部我需要小尺寸的旋轉木馬請幫我解決一點棘手。,,

回答

0

我很困惑。你需要知道如何創建旋轉木馬,或者你只需​​要知道如何使第二個旋轉木馬與主旋轉木馬一起移動?

+0

嗨嗨,事情是,我能夠創建旋轉木馬,但我需要添加另一個旋轉木馬的頂部。我可以添加一個。我在添加旋轉木馬,甚至當移動一個旋轉木馬的物品或從兩端移動時,我都能夠從兩個旋轉木馬中移動物品。感謝您寶貴的回覆。 – swathi001