-
FEATURED COMPONENTS
First time here? Check out the FAQ!
Hello, I've got "richlet" code from Zk 3 like so:
final String onMouseOver = "onmouseover:myOverFunction('" + this.getUuid() + "');";
final String onMouseOut = "onmouseleave:myOutFunction('" + this.getUuid() + "');";
container.setAction(onMouseOver + onMouseOut);
which doesn't work in Zk 6.5. I've been all over the documentation but can't figure out how to migrate this. I tried this:
container.setWidgetListener("onMouseOver", "myOverFunction(this);");
container.setWidgetListener("onMouseLeave", "myOutFunction(this);");
The onMouseOver works as expected, but the onMouseLeave does not. I'm guessing it's because the event names are considered standard browser events and "onMouseLeave" is a jQuery thing. I need the behavior of jQuery's onMouseLeave (and would like onMouseEnter but can get by with onMouseOver).
How can I use Zk 6.5 in a Richlet way to bind jQuery events to components? (To get the behavior of setAction with "onMouseLeave".)
Thanks.
Asked: 2015-10-23 18:41:28 +0800
Seen: 32 times
Last updated: Oct 28 '15
wrong valueException come in front of modal popup [closed]
Use parameters in a conditional @command
Problems with multiple press and onCtrlKey
MVVM @save on the fly [closed]
Unable to activate destroyed desktop
org.zkoss.zk.ui.UiException: java.lang.ClassNotFoundException
How to put a image or Letter over image on a specific XY Coordinate