2

how to splitter collapse same function work on mover hover?

asked 2014-02-10 14:55:19 +0800

Atul30 gravatar image Atul30
35 4

updated 2014-02-10 14:58:41 +0800

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.

delete flag offensive retag edit

1 Answer

Sort by ┬╗ oldest newest most voted
2

answered 2014-02-10 15:23:48 +0800

chillworld gravatar image chillworld flag of Belgium
5322 4 9
https://github.com/chillw...

updated 2014-02-10 15:25:15 +0800

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)">
link publish delete flag offensive edit

Comments

Thanks for help.

Atul30 ( 2014-02-11 10:49:50 +0800 )edit

Code is work.

Atul30 ( 2014-02-11 10:50:06 +0800 )edit

your welcome

chillworld ( 2014-02-11 10:58:20 +0800 )edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-02-10 14:55:19 +0800

Seen: 10 times

Last updated: Feb 10 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More