1. #1
    Sencha Premium Member
    Join Date
    Feb 2012
    Location
    Brisbane
    Posts
    244
    Vote Rating
    3
    SuperRoo is on a distinguished road

      0  

    Default tap event on read only text field

    tap event on read only text field


    Hi,
    I'm using Architect 2.2 & need a tap event on a read only text field. I tried adding a basic event to the field and added my own "tap" event (as the field does not have one) with no success.

    Any ideas?

  2. #2
    Sencha - Architect Dev Team
    Join Date
    Jan 2009
    Location
    Frederick, Maryland
    Posts
    806
    Vote Rating
    31
    jminnick has a spectacular aura about jminnick has a spectacular aura about

      0  

    Default


    If you really want a tap even on a textfield you will have to create it using the textfields element like so:

    Code:
    initialize: function() {
        var me = this;
    
        me.element.on('tap', 'doTap', me);
    
        me.callParent();
    }
    as for the doTap handler:

    Code:
    doTap: function(textfield) {
        this.fireEvent('tap', this, textfield);
    }
    Where you ultimately listen for your custom tap event is up to you. you can use the bubbleEvents property to allow a parent component or something to listen.
    Jason Minnick
    Sencha Architect Development Team

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