Files
NativeScript/apps/tests/data/virtual-array.md
Erjan Gavalji f15f283c74 Reorder test file structure to match the modules
Needed to have a nice structured cookbook dir in the docs

Includes:
Move the data-module tests under the data dir
Move the frame tests under the ui dir
Rename the dialog.md file to dialogs.md
Fix the web-view title
Add previous_url attributes to each article for SEO
Rename the style dir to styling to match the reference
Fix the frame-tests path
2016-05-05 10:43:35 +03:00

972 B

nav-title title description previous_url
virtual-array How-To virtual-array Examples for using virtual-array /ApiReference/data/virtual-array/HOW-TO

Virtual Array module

Handle "itemsLoading" event to load items on demand using load() method.

Use "length" property set via VirtualArray constructor to specify total number of items, "loadSize" to specify number of items to be requested in a single request, "itemsLoading" event to handle items request and "load()" method to copy items into the array. All already loaded items are cached in -memory and when "getItem()" method is called the array will raise "itemsLoading" event for still not loaded items.

Handle "change" event when you load items using load() method.

Handle "change" event when you increase "length" property.