kvision
Toggle table of contents
8.2.0
js
Platform filter
js
Switch theme
Search in API
kvision
kvision-state
/
io.kvision.state
/
ObservableList
Observable
List
interface
ObservableList
<
T
>
:
MutableList
<
T
>
,
ObservableState
<
List
<
T
>
>
(
source
)
Observable list interface.
Inheritors
ObservableListWrapper
Members
Members & Extensions
Properties
on
Update
Link copied to clipboard
abstract
val
onUpdate
:
MutableCollection
<
(
MutableList
<
T
>
)
->
Unit
>
size
Link copied to clipboard
abstract
override
val
size
:
Int
Functions
add
Link copied to clipboard
abstract
override
fun
add
(
element
:
T
)
:
Boolean
abstract
fun
add
(
index
:
Int
,
element
:
T
)
add
All
Link copied to clipboard
abstract
override
fun
addAll
(
elements
:
Collection
<
T
>
)
:
Boolean
abstract
fun
addAll
(
index
:
Int
,
elements
:
Collection
<
T
>
)
:
Boolean
as
Js
Array
View
Link copied to clipboard
open
fun
asJsArrayView
(
)
:
JsArray
<
T
>
as
Js
Readonly
Array
View
Link copied to clipboard
open
fun
asJsReadonlyArrayView
(
)
:
JsReadonlyArray
<
T
>
clear
Link copied to clipboard
abstract
override
fun
clear
(
)
contains
Link copied to clipboard
abstract
operator override
fun
contains
(
element
:
T
)
:
Boolean
contains
All
Link copied to clipboard
abstract
override
fun
containsAll
(
elements
:
Collection
<
T
>
)
:
Boolean
get
Link copied to clipboard
abstract
operator
fun
get
(
index
:
Int
)
:
T
get
State
Link copied to clipboard
abstract
fun
getState
(
)
:
List
<
T
>
index
Of
Link copied to clipboard
abstract
fun
indexOf
(
element
:
T
)
:
Int
is
Empty
Link copied to clipboard
abstract
override
fun
isEmpty
(
)
:
Boolean
iterator
Link copied to clipboard
abstract
operator override
fun
iterator
(
)
:
Iterator
<
T
>
last
Index
Of
Link copied to clipboard
abstract
fun
lastIndexOf
(
element
:
T
)
:
Int
list
Iterator
Link copied to clipboard
abstract
override
fun
listIterator
(
)
:
MutableListIterator
<
T
>
abstract
override
fun
listIterator
(
index
:
Int
)
:
MutableListIterator
<
T
>
remove
Link copied to clipboard
abstract
override
fun
remove
(
element
:
T
)
:
Boolean
remove
All
Link copied to clipboard
abstract
override
fun
removeAll
(
elements
:
Collection
<
T
>
)
:
Boolean
remove
At
Link copied to clipboard
abstract
fun
removeAt
(
index
:
Int
)
:
T
retain
All
Link copied to clipboard
abstract
override
fun
retainAll
(
elements
:
Collection
<
T
>
)
:
Boolean
set
Link copied to clipboard
abstract
operator
fun
set
(
index
:
Int
,
element
:
T
)
:
T
sub
Link copied to clipboard
fun
<
S
,
T
>
ObservableState
<
S
>
.
sub
(
contextWidget
:
Widget
?
=
null
,
extractor
:
(
S
)
->
T
)
:
ObservableState
<
T
>
Returns a sub-store of the original ObservableState
sub
List
Link copied to clipboard
abstract
override
fun
subList
(
fromIndex
:
Int
,
toIndex
:
Int
)
:
MutableList
<
T
>
subscribe
Link copied to clipboard
abstract
fun
subscribe
(
observer
:
(
List
<
T
>
)
->
Unit
)
:
(
)
->
Unit