-
FEATURED COMPONENTS
First time here? Check out the FAQ!
I am trying to learn ZK, and I am using splitter box and I want in some changes in splitter function. Normally splitter work on click arrow button than left side panel is collapse but my need is same on mouse hover. when I mouse hover on arrow left panel is collapse. Please help me and thanks in advance.
Something like this?
@Command
public void addEventListener(final @BindingParam("splitter") Splitter splitter) {
splitter.addEventListener(Events.ON_MOUSE_OVER, new EventListener<Event>() {
public void onEvent(Event event) throws Exception {
splitter.setOpen(false);
}
});
}
and in the zul :
<splitter id="splitter" onCreate="@command('addEventListener', splitter = splitter)">
Asked: 2014-02-10 14:55:19 +0800
Seen: 13 times
Last updated: Feb 10 '14