Threaded View

  1. #1
    Sencha User
    Join Date
    Oct 2011
    Posts
    17
    Answers
    1
    Vote Rating
    0
    Sondergard is on a distinguished road

      0  

    Default Answered: I can only fire tap-event with fireAction('tap'), not mouseclick

    Answered: I can only fire tap-event with fireAction('tap'), not mouseclick


    I have a panel with some items, a tab bar, a carousel and a panel.

    In my controller i add a tap-event listener. When clicking the panel nothing happens, but if i use the fireAction('tap') on the panel, the event is fired as expected.


    PanelView:
    Code:
    Ext.define('Sencha.view.Main', {
    extend: 'Ext.Panel',
    config:{
    items[
    { ...
    },
    { ...
    },
    {
    xtype: 'panel',
    id: 'infoBar',
    data: {month: "June 2011"},
    tpl: [
    "<div>",
    "<div><span>{month}</span></div>", "</div>"
    ].join(""), docked: 'bottom'
    }
    ]
    }
    });
    controller:
    Code:
    init: function() {
    this.control({
    '#infoBar': { tap: function(){alert("tap")} } }); }

  2. Okay i've solved it myself.

    Using this.control() is not possible in this situation, since it makes use of ComponentQuery.

    The trick is the use Ext.get()

    Code:
    var someDiv = Ext.get("someDivId");
    
    
    someDiv.addListener('tap', function(){ alert("tap") });

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi