0

calling zk animations from java code

asked 2008-06-09 21:37:12 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5017536

By: sebykrueger

Hey guys,

I'm hiding a <div> and then opening it (slideDown) with

<combobox id="envCombo" autodrop="true"
action="onselect: anima.slideDown(#{northDiv})"
onCreate="controller.envComboBuild()"
onSelect="controller.envComboSelect()"
/>

I would like to be able to call the anima.slideDown(#{northDiv}) from my java code as well as from the zul page. Is this possible?

is, can I call the "anima.slideDown(#{northDiv})" from my java code somehow?

Cheers, Sebastian.

delete flag offensive retag edit

5 Replies

Sort by ยป oldest newest

answered 2008-06-09 21:37:38 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5017549

By: mjablonski

Hi Sebastion,

something like the following should do the trick:

yourComponent.setAction("onshow:anima.appear(#{self});onhide:anima.dropOut(#{sel
f})");

Cheers, maik

link publish delete flag offensive edit

answered 2008-06-09 21:39:25 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5017586

By: sebykrueger

Hi maik,

thanks for your fast reply.

I've tried this:
((Div) w.getFellow("northDiv")).setAction("onshow:anima.appear(#{self});onhide:a
nima.dropOut(#{self})");

But it doesn't seem to show my "northDiv" div.

link publish delete flag offensive edit

answered 2008-06-09 21:41:35 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5017634

By: mjablonski

This was just an example which is demonstrating how to fade-in/fade-out an component.
This must be triggered by some action which displays the component.

For your case something like this should work to get the expected result:

((Div) w.getFellow("northDiv")).setAction("onselect: anima.slideDown(#{self})");

Cheers, Maik


link publish delete flag offensive edit

answered 2008-06-09 21:42:52 +0800

admin gravatar image admin
18691 1 10 130
ZK Team


Orignial message at:
https://sourceforge.net/forum/message.php?msg_id=5017650

By: sebykrueger

I'm trying to trigger the action not from a component, but from java code, so I think the setAction() method won't work in this case.

How can I call the anima.slideDown() js function without having to use the action on a component? Is this possible?

Many thanks again,

Sebastian.

link publish delete flag offensive edit

answered 2012-10-17 06:18:15 +0800

bhagyashree gravatar image bhagyashree
78

Is animation still supported in ZK 6.5?

link publish delete flag offensive edit
Your reply
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

RSS

Stats

Asked: 2008-06-09 21:37:12 +0800

Seen: 246 times

Last updated: Oct 17 '12

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