Ross Wan's World!

Python, Ajax, PHP and Linux.

Dojo: Dialog 的 onClose 事件

Posted by Ross Wan 于 2009/03/06

对于dijit.Dial0g 为说,是没有 onClose 事件的,当你关闭它,只是将它隐藏而已。所以,应该用 hide 事件来代替。如:

var dialog = dijit.byId("fooDialog");
dialog.connect(dialog, "hide", function(e){
     /* do every thing here */
});

当 dialog 调用 hide() 隐藏自身时,会触发事件。

Advertisements

发表评论

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / 更改 )

Twitter picture

You are commenting using your Twitter account. Log Out / 更改 )

Facebook photo

You are commenting using your Facebook account. Log Out / 更改 )

Google+ photo

You are commenting using your Google+ account. Log Out / 更改 )

Connecting to %s

 
%d 博主赞过: