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-state/get-state.html | 4 +- .../-observable-state/index.html | 46 ++++++++-------------- .../-observable-state/subscribe.html | 4 +- 3 files changed, 20 insertions(+), 34 deletions(-) (limited to 'api/pl.treksoft.kvision.state/-observable-state') diff --git a/api/pl.treksoft.kvision.state/-observable-state/get-state.html b/api/pl.treksoft.kvision.state/-observable-state/get-state.html index 7231e578..15b9cd27 100644 --- a/api/pl.treksoft.kvision.state/-observable-state/get-state.html +++ b/api/pl.treksoft.kvision.state/-observable-state/get-state.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.state / ObservableState / getState

getState

- -abstract fun getState(): S +(js) +abstract fun getState(): S

Get current state.

diff --git a/api/pl.treksoft.kvision.state/-observable-state/index.html b/api/pl.treksoft.kvision.state/-observable-state/index.html index af76eaa3..e4d62215 100644 --- a/api/pl.treksoft.kvision.state/-observable-state/index.html +++ b/api/pl.treksoft.kvision.state/-observable-state/index.html @@ -8,42 +8,28 @@ kvision / pl.treksoft.kvision.state / ObservableState

ObservableState

-interface ObservableState<S> +(js) interface ObservableState<S>

An interface of observable state.

Functions

+abstract fun getState(): S - - -
-

getState

+(js) +

getState

-abstract fun getState(): S

Get current state.

-
-

subscribe

+(js) +

subscribe

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

Subscribe for the state change notifications.

-
-

Extension Functions

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

createInstance

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

Helper function for creating JavaScript objects from dynamic constructors.

-
@@ -52,30 +38,30 @@ -

ObservableList

+(js) +

ObservableList

-interface ObservableList<T> : MutableList<T>, ObservableState<List<T>>

Observable list interface.

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

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>> -

ReduxStore

+(js) +

ReduxStore

-class ReduxStore<S : Any, A : RAction> : ObservableState<S>

A class implementing redux pattern backed by the Redux Kotlin library.

- +class ReduxStore<S : Any, A : RAction> : ObservableState<S> diff --git a/api/pl.treksoft.kvision.state/-observable-state/subscribe.html b/api/pl.treksoft.kvision.state/-observable-state/subscribe.html index 66514b8f..5df4c741 100644 --- a/api/pl.treksoft.kvision.state/-observable-state/subscribe.html +++ b/api/pl.treksoft.kvision.state/-observable-state/subscribe.html @@ -8,8 +8,8 @@ kvision / pl.treksoft.kvision.state / ObservableState / subscribe

subscribe

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

Subscribe for the state change notifications.

-- cgit