sencha > 윤방 그림 수량은contrl에서 제어합니다

1346 단어 sencha

countrl
 
    photoListTap: function(list, index, node, record) {
        if (!this.photoShow) {
            this.photoShow = Ext.create('Sencha.view.PhotoShow');
        }
 		
 		var t_id = list.getStore().getAt(index).get('t_id');
		this.showPhoto(t_id,this.photoShow);
        this.getPhotoCard().push(this.photoShow);
    },
    showPhoto: function(t_id,pt){
		// store
		var photoShowST = Ext.getStore('PhotoShowST');	
		photoShowST.getProxy().setExtraParam('t_id', t_id);
		photoShowST.load();
		//\    
		// photoView	
		var count = photoShowST.getAt(0).get('photo_count');
		var myitems = [];  
		for(j=0;j<=count;j++){
			myitems.push(  
				{xtype: 'image',src: 'http://www.sencha.com/assets/images/sencha-avatar-64x64.png'}
			); 		
		}		
       pt.setItems(myitems);
    },   

 
view:
Ext.define('Sencha.view.PhotoShow', {
    extend: 'Ext.Carousel',
	xtype: 'photo_show_xx',
    config: 
    {        
  	
		directionLock: true,
		direction: 'horizontal',

    }
});

좋은 웹페이지 즐겨찾기