Languages

Menu
Sites
Language
Snap scrolling with ui-listview...

The ui-listview is great for scrolling a list of visual elements.  <ul class="ui-listview">

Can the ui-listview be directed to snap to a specific item?  Are there ui-listview events that can control which list item can be moved to the top position?

It would appear as if the native SDK has the 'ScrollToItem(int index)' method.  Is there an equivalent via Javascript?

Thanks in advance!

 

Responses

1 Replies
AVSukhov

Hello,

Using Tizen wearable Web UI framework you can create Virtual List. This widget has following methods:

scrollTo(position) - position in pixels

and

scrollToIndex(index) - scroll the list to a defined index

 

More info about Virtual List you can found in documentation:

https://developer.tizen.org/dev-guide/2.3.0/org.tizen.wearable.web.appprogramming/html/api_reference/ui_framework_reference/widgets/widget_virtuallist.htm