使用 2in3 订阅 YUI2 DataTable 事件时出现问题
有谁知道与 YUI3 2in3 一起使用时订阅 YUI2 DataTable 触发的事件是否存在任何已知问题?我正在尝试执行以下操作,但它不起作用:
myDataTable.subscribe("initEvent", function(){
Y.log('******** hello from initEvent');
});
DataTable 的其他功能似乎可以工作,但我似乎无法利用任何事件。
还有其他人对此有疑问吗?有什么建议吗?
谢谢,
巴特
Does anyone know if there are any known issues subscribing to events fired by a YUI2 DataTable when using with YUI3 2in3? I'm trying to do the following and it's not working:
myDataTable.subscribe("initEvent", function(){
Y.log('******** hello from initEvent');
});
Other features of the DataTable seem to be working but I can't seem to tap into any events.
Does anyone else have issues with this? Any suggestions?
Thanks,
Bart
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
巴特,
http://ericmiraglia.com/yui/demos/2in3dt.php
订阅到 init 事件和行单击事件似乎使用上面的语法工作。您的实施有什么不同吗?或者也许 init 事件已经在您正在侦听的位置触发了?
-埃里克
Bart,
http://ericmiraglia.com/yui/demos/2in3dt.php
Subscribing to the init event and the row click event seems to work using your syntax above. Is there something different about your implementation? Or perhaps the init event has already fired at the point where you're listening for it?
-Eric
健全性检查:YUI2 事件模块是否已加载?另外,尝试加载 YUI2 记录器,并确保引用脚本的调试版本。输出很详细,但通常会显示问题所在。
Sanity check: is the YUI2 event module loaded? Also, try loading the YUI2 logger, and make sure you are referencing the debug version of the scripts. The output is verbose, but usually shows where the problem is.