1. #1
    Sencha User
    Join Date
    Nov 2011
    Location
    Renfrew
    Posts
    74
    Vote Rating
    2
    tmcdonald is on a distinguished road

      0  

    Default How to send a listener event to a controller

    How to send a listener event to a controller


    I'm pretty sure I've seen how to do this somewhere in the documentation or forums, but I'm just not getting the correct terminology for a proper search. What I'm trying to do is capture the back button on a navigation bar and get a function within a controller to handle it.

    I've added a Delegate Event Binding to my navigation bar like so:

    Code:
            navigationBar: {
                id: 'navigationBar',
                itemId: 'mynavigationbar',
                ui: 'light'
            },
            listeners: [
                {
                    fn: 'onNavigationviewBack',
                    event: 'back',
                    delegate: '#navigationBar'
                }
            ]
        },
    
        onNavigationviewBack: function(navigationView, eOpts) {
            // Send an event to controller???
        }
    Thanks for any help.

  2. #2
    Sencha User
    Join Date
    Nov 2011
    Location
    Renfrew
    Posts
    74
    Vote Rating
    2
    tmcdonald is on a distinguished road

      0  

    Default


    I just realized that I don't need to add a delegate, I can use an action on the controller to do the same thing. Which is what I wanted all along.

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