-
FEATURED COMPONENTS
First time here? Check out the FAQ!
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.
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
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.
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
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.
Is animation still supported in ZK 6.5?
Asked: 2008-06-09 21:37:12 +0800
Seen: 246 times
Last updated: Oct 17 '12