ExtJS timeout

Description

ExtJS timeout

Example

 1 this.panelWin = new Ext.Window({
 2                     border: false,
 3                     resizable: false,
 4                     draggable: false,
 5                     closable: false,
 6                     layout: 'fit',
 7                     autoWidth: true,
 8                     autoHeight: true,
 9                     items: [newPanel],
10                     listeners:{
11                         show: function() {
12                             var self = this;
13                             setTimeout(function() {
14                                 self.destroy()
15                             },3000);
16                         },
17                         scope: this
18                     }
19                 });

Reference

 

posted on 2016-01-19 21:55  梅山民  阅读(719)  评论(0编辑  收藏  举报

导航