开发者

Flex 4 - Current Items in Viewport of a List?

开发者 https://www.devze.com 2023-02-14 15:38 出处:网络
I have provided an ArrayCollection to a List, works fine, scroll and sweet. I am able to access the carretIndex (though not necessarily the ones in view) by

I have provided an ArrayCollection to a List, works fine, scroll and sweet.

I am able to access the carretIndex (though not necessarily the ones in view) by list.caretIndex

Is it possible to access the list of items c开发者_运维问答urrently visible in the List.

What I am curious to know, is how can I can access (read) the first (or any of the) item in a given View port of the list.


Thanks Florian, That gave me a direction in searching in the DataGroup for the currently in view, Turns out Adobe has the perfect method for this basic problem: scroller.dataGroup.getItemIndicesInView() and this returns you an Vector.


See this or this

0

精彩评论

暂无评论...
验证码 换一张
取 消