cardlayout setSelectedIndex without animation

asked 2012-12-21 14:00:52 +0800

pviceic gravatar image pviceic

updated 2012-12-21 14:01:13 +0800


Is it possible to use setSelectedItem on the card layout to position on the child, but without animating from the begining ?

The following code works, but everytime I load the next batch of notifications, and set the selected item to the next one, all the cards get animated from the begining..

<cardlayout orient="horizontal" children="@load(vm.notifications)" hflex="1"  vflex="min" selectedIndex="@load(vm.selectedIndex)">..<../>

My goal is to load first batch of 10 notifications, and then when the user clicks next on the last one, I load the next batch of 10 ans so on..

Any help? should I fill a feature request?

Many thanks,

delete flag offensive retag edit
Be the first one to reply this discussion!
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




Asked: 2012-12-21 14:00:52 +0800

Seen: 59 times

Last updated: Dec 21 '12

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