Question

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,

Was it helpful?

Solution

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top