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,993
    Vote Rating
    212
    slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of slemmon has much to be proud of

      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

  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