NativeScript Docs
Core Modules
NativeScript Angular
NativeScript UI
Article title
view on GitHub
Search
Preparing search index...
The search index is not available
NativeScript
Options
All
Public
Public/Protected
All
Inherited
Only exported
Menu
Globals
"data/virtual-array"
VirtualArray
Class VirtualArray<T>
Globals
"data/virtual-
array"
Virtual
Array
constructor
_is
View
Base
length
load
Size
change
Event
items
Loading
Event
property
Change
Event
_create
Property
Change
Data
_emit
add
Event
Listener
get
get
Item
has
Listeners
load
notify
notify
Property
Change
off
on
once
remove
Event
Listener
set
set
Item
set
Property
Items
Loading
Type parameters
T
Hierarchy
Observable
Index
Constructors
constructor
Properties
_is
View
Base
length
load
Size
change
Event
items
Loading
Event
property
Change
Event
Methods
_create
Property
Change
Data
_emit
add
Event
Listener
get
get
Item
has
Listeners
load
notify
notify
Property
Change
off
on
once
remove
Event
Listener
set
set
Item
set
Property
Constructors
constructor
new
Virtual
Array
(
arrayLength
?:
number
)
:
VirtualArray
Parameters
Optional
arrayLength:
number
Returns
VirtualArray
Properties
Private
_is
View
Base
_is
View
Base
:
boolean
length
length
:
number
load
Size
load
Size
:
number
Static
change
Event
change
Event
:
string
Static
items
Loading
Event
items
Loading
Event
:
string
Static
property
Change
Event
property
Change
Event
:
string
Methods
Private
_create
Property
Change
Data
_create
Property
Change
Data
(
name
:
string
, value
:
any
, oldValue
?:
any
)
:
PropertyChangeData
Parameters
name:
string
value:
any
Optional
oldValue:
any
Returns
PropertyChangeData
Private
_emit
_emit
(
eventNames
:
string
)
:
any
Parameters
eventNames:
string
Returns
any
add
Event
Listener
add
Event
Listener
(
eventNames
:
string
, callback
:
function
, thisArg
?:
any
)
:
any
Parameters
eventNames:
string
callback:
function
(
data
:
EventData
)
:
void
Parameters
data:
EventData
Returns
void
Optional
thisArg:
any
Returns
any
get
get
(
name
:
string
)
:
any
Parameters
name:
string
Returns
any
get
Item
get
Item
(
index
:
number
)
:
T
Parameters
index:
number
Returns
T
has
Listeners
has
Listeners
(
eventName
:
string
)
:
boolean
Parameters
eventName:
string
Returns
boolean
load
load
(
index
:
number
, items
:
T[]
)
:
void
Parameters
index:
number
items:
T[]
Returns
void
notify
notify<T>
(
data
:
T
)
:
void
Type parameters
T
:
EventData
Parameters
data:
T
Returns
void
notify
Property
Change
notify
Property
Change
(
propertyName
:
string
, value
:
any
, oldValue
?:
any
)
:
void
Parameters
propertyName:
string
value:
any
Optional
oldValue:
any
Returns
void
off
off
(
eventNames
:
string
, callback
?:
any
, thisArg
?:
any
)
:
any
Parameters
eventNames:
string
Optional
callback:
any
Optional
thisArg:
any
Returns
any
on
on
(
eventNames
:
string
, callback
:
function
, thisArg
?:
any
)
:
any
on
(
event
:
"itemsLoading"
, callback
:
function
, thisArg
?:
any
)
:
any
on
(
event
:
"change"
, callback
:
function
, thisArg
?:
any
)
:
any
Parameters
eventNames:
string
callback:
function
(
data
:
EventData
)
:
void
Parameters
data:
EventData
Returns
void
Optional
thisArg:
any
Returns
any
Parameters
event:
"itemsLoading"
callback:
function
(
args
:
ItemsLoading
)
:
void
Parameters
args:
ItemsLoading
Returns
void
Optional
thisArg:
any
Returns
any
Parameters
event:
"change"
callback:
function
(
args
:
ChangedData
<
T
>
)
:
void
Parameters
args:
ChangedData
<
T
>
Returns
void
Optional
thisArg:
any
Returns
any
once
once
(
event
:
string
, callback
:
function
, thisArg
?:
any
)
:
any
Parameters
event:
string
callback:
function
(
data
:
EventData
)
:
void
Parameters
data:
EventData
Returns
void
Optional
thisArg:
any
Returns
any
remove
Event
Listener
remove
Event
Listener
(
eventNames
:
string
, callback
?:
any
, thisArg
?:
any
)
:
any
Parameters
eventNames:
string
Optional
callback:
any
Optional
thisArg:
any
Returns
any
set
set
(
name
:
string
, value
:
any
)
:
void
Parameters
name:
string
value:
any
Returns
void
set
Item
set
Item
(
index
:
number
, value
:
T
)
:
void
Parameters
index:
number
value:
T
Returns
void
set
Property
set
Property
(
name
:
string
, value
:
any
)
:
void
Parameters
name:
string
value:
any
Returns
void
Legend
Module
Object literal
Variable
Function
Function with type parameter
Index signature
Type alias
Enumeration
Enumeration member
Property
Method
Interface
Interface with type parameter
Constructor
Property
Method
Index signature
Class
Class with type parameter
Constructor
Property
Method
Accessor
Index signature
Inherited constructor
Inherited property
Inherited method
Inherited accessor
Protected property
Protected method
Protected accessor
Private property
Private method
Private accessor
Static property
Static method