简体   繁体   中英

YUI2: How to subscribe to YUI Panel hide event?

I am using YUI Panel http://developer.yahoo.com/yui/container/panel/ to design an application.

I want to execute some code at the time of show() and hide() of the panel. I don't know what event to register and how that event can be subscribed in YUI?

Anyone please suggest me any tutorial or examples, so that I can solve above problem..

I found the solution for the problem stated in the post.

myPanel.hideMaskEvent.subscribe(function(e) {
    // the Event Code
});

我认为您实际上想要“隐藏”事件,而不是“hideMask”。

myPanel.subscribe("hide", function (event) {alert('foo');});

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM