Gelmiş geçmiş en büyük porno sitemiz olan 2pe de her zaman en kaliteli pornoları sunmayı hedefledik. Diğer video sitemiz olan vuam da ise hd porno ağırlıklı çalışmalara başladık.

  1. #1
    Sencha User
    Join Date
    Oct 2010
    Posts
    80
    Vote Rating
    0
    linuxyf is on a distinguished road

      0  

    Default addListeners problem

    addListeners problem


    there is a togglefield in componentView's item, i want to listen the change event of togglefield control. if i do this as following:
    Code:
    {							xtype: 'togglefield',
    							listeners: {
    		        				change: function (me, thumb, value, options) {
    		        					
    		        					if(value == 1) {
    		        						...
    		        					}
    		        					else {
    		        						...
    		        					}
    		        				}
    							 }
    the change event of first item in componentView can be catched when i tap the toggle of first item. but the change event of other items in componentView can't be catched. Why?

    So i want to add a listener for togglefield in initialize function, how to write the addListeners code??
    Code:
    Ext.define('ShopSystem.view.SyohinZanListItem', {
        extend: 'Ext.dataview.DataItem',
        ......
         initialize: function(){    	    	this.down('title').setTitle(this._syohin_name.getHtml());
        	var s2 = this.down('togglefield');
        	s2.addListener(.....)   ???

  2. #2
    Sencha User
    Join Date
    Oct 2010
    Posts
    80
    Vote Rating
    0
    linuxyf is on a distinguished road

      0  

    Default


    i get it, thanks everyone.

    Code:
        	var s2 = this.down('togglefield');    	s2.on({
        		change: this.onToggleChanged
        	});