VirtualArray
Generic types: | P C |
Class that represents an array that is not fully loaded from the server but loads the data as it is needed.
Constructor
The constructor of the virtual array that takes the length of the array as a parameter. | |||||||||||||||
Presentation
| |||||||||||||||
Parameters
|
Properties
Name | Type | Description |
---|---|---|
fetchedIndexes | boolean[] | |
length | number | |
rawArray | string[] |
Methods
getIdAtIndex() | ||||||
---|---|---|---|---|---|---|
returns the id at the given index without fetching the id from the server. if the id does not exist, an ID based on the index is returned. | ||||||
Presentation
| ||||||
Parameters
Returnsstring | undefined -the id at the given index |
refetchIndexes() |
---|
Tells the virtual array to refetch the indexes the next time an element is requested. |
Presentation
|
Returnsvoid |