开发者

GrailsUI (YUI) data table hover event

How to make the data table rows change color as hover over it. The YUI example is here link text

开发者_开发技巧

I tried something like

    <script>
  GRAILSUI.myDataTable.subscribe("rowMouseoverEvent", GRAILSUI.myDataTable.onEventHighlightRow);
  GRAILSUI.myDataTable.subscribe("rowMouseoutEvent", GRAILSUI.myDataTable.onEventUnhighlightRow);
  GRAILSUI.myDataTable.subscribe("rowClickEvent", GRAILSUI.myDataTable.onEventSelectRow);
</script>

thanks,


ok.. got it working.. for anyone interested, you need to wrap the above statements in

YAHOO.util.Event.onDOMReady(function () { });

so that the table is initialized.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜