kvision / pl.treksoft.kvision.utils / ObservableList

ObservableList

interface ObservableList<T> : MutableList<T>

Observable list interface.

Properties

onUpdate

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

Extension Functions

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.

Inheritors

ObservableListWrapper

class ObservableListWrapper<T> : MutableList<T>, ObservableList<T>

Simple observable list implementation.