1. #1
    Sencha User
    Join Date
    Mar 2012
    Posts
    17
    Vote Rating
    0
    EdGarciaC is on a distinguished road

      0  

    Default Help with a callback function

    hi guys, can somebody give me a example for a callback function?
    i need to do some actions before something...

  2. #2
    Sencha User
    Join Date
    Oct 2011
    Location
    Vancouver, Canada
    Posts
    157
    Vote Rating
    14
    el_chief will become famous soon enough

      0  

    Default

    You can find an example of a callback here:

    http://docs.sencha.com/ext-js/4-1/#!...ic-method-load

  3. #3
    Sencha Premium Member Zdeno's Avatar
    Join Date
    Nov 2009
    Location
    Prague
    Posts
    747
    Vote Rating
    72
    Zdeno is just really nice Zdeno is just really nice Zdeno is just really nice Zdeno is just really nice

      0  

    Default

    Check API docs and select function which you want on favourite class

    E.g. store:

    Code:
    var myStore = new Ext.create('Ext.data.Store', {
    ...
    listeners: {
        beforeload: function(store, operation, e){
             ...
        }
    }
    or on object instance:

    Code:
    myStore.on('beforeload', function(store, operation, e){
        //do whatever you want here
    });

Thread Participants: 2