Results 1 to 3 of 3

Thread: Ext.window.Window event beforemove

  1. #1
    Sencha User
    Join Date
    Jun 2008
    Posts
    49
    Vote Rating
    0
      0  

    Default 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
    6,154
    Vote Rating
    249
      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 human resources manager: fabienne.bell@sencha.com

  3. #3
    Sencha User
    Join Date
    Jun 2008
    Posts
    49
    Vote Rating
    0
      0  

    Default

    Thanks a lot

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •