[AC-5353] iOS - Listview / ListSection : Scroll to top when set new items
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | n/a |
Status | Closed |
Resolution | Won't Do |
Resolution Date | 2017-11-14T20:35:16.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | Titanium SDK & CLI |
Labels | ios |
Reporter | nicolomonili |
Assignee | Shak Hossain |
Created | 2017-11-07T15:55:21.000+0000 |
Updated | 2017-11-14T20:35:16.000+0000 |
Description
*Actual scenario* : _(almost always i use the ListView with only one section)_ When i have to update the items of a section i do this:
listView.sections[0].setItems(newdata);
listView.scrollToItem(0,0,false);
*My request*: Add a new parameter to the function *setItems* (a boolean value?) to enable (if pass true) the scroll to top without having to call the function *scrollToItem*.
Example:
listView.sections[0].setItems(newdata,true);
Could it be an interesting feature to implement?
Hello, can you provide a native guide on this? is this supported natively? Thanks.
I don't think it's a native feature
Hello, If the feature is not supported natively, We will not support that with Appcelerator. Maybe in future when this is done natively our engineers might consider it. Thanks.