0

listbox mvvm - scroll into custom row

asked 2019-12-31 18:33:50 +0800

wastemails gravatar image wastemails
130 1 2

In pure mvvm, how to scroll to custom row number

delete flag offensive retag edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-03-26 10:51:21 +0800

hawk gravatar image hawk
3250 1 5
http://hawkphoenix.blogsp... ZK Team

updated 2020-03-26 11:01:43 +0800

Currently, there is no MVVM way to scroll a listitem into a view. please call the method: https://www.zkoss.org/javadoc/latest/zk/org/zkoss/zul/Listbox.html#scrollToIndex-int-

If you want to keep your ViewModel clean without referencing a component, you can apply a composer to the listbox to handle such a scrolling logic separately.

link publish delete flag offensive edit

Comments

can you please provide composer sample code

wastemails ( 2020-07-22 17:52:12 +0800 )edit

you can call the same method also from a composer: e.g: myListbox.scrollToIndex(20)

cor3000 ( 2020-07-22 18:11:06 +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: 2019-12-31 18:33:50 +0800

Seen: 20 times

Last updated: Mar 26 '20

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