interface ObservableList<T> : MutableList<T>, ObservableState<List<T>>
Observable list interface.
abstract val onUpdate: MutableCollection<(MutableList<T>) -> Unit> |
abstract fun subscribe(observer: (S) -> Unit): () -> Unit
Subscribe for the state change notifications. |
fun <T> Any?.createInstance(vararg args: dynamic): T
Helper function for creating JavaScript objects from dynamic constructors. |
|
fun <T> MutableList<T>.syncWithList(list: List<T>): Unit
Utility extension function to synchronise elements of the MutableList. |
class ObservableListWrapper<T> : MutableList<T>, ObservableList<T>, ObservableState<List<T>>
Simple observable list implementation. |