From 0365722f8549ee93918be99da1b9f901cf0b2c8d Mon Sep 17 00:00:00 2001 From: Robert Jaros Date: Fri, 13 Mar 2020 01:05:20 +0100 Subject: API documentation for KVision 3.5.2 --- .../-observable-list/index.html | 59 +++------------------- 1 file changed, 7 insertions(+), 52 deletions(-) (limited to 'api/pl.treksoft.kvision.state/-observable-list/index.html') diff --git a/api/pl.treksoft.kvision.state/-observable-list/index.html b/api/pl.treksoft.kvision.state/-observable-list/index.html index 88eebc20..9dc63c41 100644 --- a/api/pl.treksoft.kvision.state/-observable-list/index.html +++ b/api/pl.treksoft.kvision.state/-observable-list/index.html @@ -8,63 +8,18 @@ kvision / pl.treksoft.kvision.state / ObservableList

ObservableList

-interface ObservableList<T> : MutableList<T>, ObservableState<List<T>> +(js) interface ObservableList<T> : MutableList<T>, ObservableState<List<T>>

Observable list interface.

Properties

- - -
-

onUpdate

+(js) +

onUpdate

-abstract val onUpdate: MutableCollection<(MutableList<T>) -> Unit>
-

Inherited Functions

- - - - - - - - - - - -
-

getState

-
-abstract fun getState(): S -

Get current state.

-
-

subscribe

-
-abstract fun subscribe(observer: (S) -> Unit): () -> Unit -

Subscribe for the state change notifications.

-
-

Extension Functions

- - - - - - - - - +abstract val onUpdate: MutableCollection<(MutableList<T>) -> Unit>
-

createInstance

-
-fun <T> Any?.createInstance(vararg args: dynamic): T -

Helper function for creating JavaScript objects from dynamic constructors.

-
-

syncWithList

-
-fun <T> MutableList<T>.syncWithList(list: List<T>): Unit -

Utility extension function to synchronise elements of the MutableList.

-
@@ -73,12 +28,12 @@ -

ObservableListWrapper

+(js) +

ObservableListWrapper

-class ObservableListWrapper<T> : MutableList<T>, ObservableList<T>, ObservableState<List<T>>

Simple observable list implementation.

- +class ObservableListWrapper<T> : MutableList<T>, ObservableList<T>, ObservableState<List<T>> -- cgit