1. #1
    Sencha User
    Join Date
    Jun 2008
    Posts
    49
    Vote Rating
    0
    peter seliger is on a distinguished road

      0  

    Default Ext.window.Window event beforemove

    Ext.window.Window event beforemove


    Is there a posibility to capture the moment before moving window to hide all components inside the window while moving it for example?

  2. #2
    Sencha - Support Team slemmon's Avatar
    Join Date
    Mar 2009
    Location
    Boise, ID
    Posts
    5,035
    Vote Rating
    185
    slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold slemmon is a splendid one to behold

      0  

    Default


    Window when draggable does use ComponentDragger which has a dragstart event that fires on the window that you can listen for.
    http://docs.sencha.com/extjs/4.2.1/#...vent-dragstart

    *To see what events fire on an observable class you can use Observable's capture method().
    Code:
    var win = Ext.create('Ext.window.Window', {
        title: 'Hello',
        height: 100,
        width: 400,
        layout: 'fit',
        items: {  // Let's put an empty grid in just to illustrate fit layout
            xtype: 'grid',
            border: false,
            columns: [{header: 'World'}],                 // One header just for show. There's no data,
            store: Ext.create('Ext.data.ArrayStore', {}) // A dummy empty data store
        }
    }).show();
    
    
    Ext.util.Observable.capture(win, function (eventName) {
        console.log(eventName);
    });
    Are you a Sencha products veteran who has wondered what it might be like to work at Sencha? If so, please reach out to our recruiting manager: sheryl@sencha.com

    C
    heck out all of the 2013 SenchaCon presentations here:
    http://www.sencha.com/blog/senchacon...now-available/

  3. #3
    Sencha User
    Join Date
    Jun 2008
    Posts
    49
    Vote Rating
    0
    peter seliger is on a distinguished road

      0  

    Default


    Thanks a lot

Thread Participants: 1

Tags for this Thread