Package-level declarations

Classes supporting the observer pattern, including the implementation of the observable list.

Functions

Link copied to clipboard
fun <Inputs : Any, Events : Any, State : Any, W> W.bind(viewModel: <Error class: unknown class><Inputs, Events, State>, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: W.(State) -> Unit): W

An extension function which binds the widget to the given ballast view model.

fun <Inputs : Any, Events : Any, State : Any, T, W> W.bind(viewModel: <Error class: unknown class><Inputs, Events, State>, sub: (State) -> T, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: W.(T) -> Unit): W

An extension function which binds the widget to the given ballast view model using the sub extractor function.

Link copied to clipboard
fun <Inputs : Any, Events : Any, State, W> W.bindEach(viewModel: <Error class: unknown class><Inputs, Events, List<State>>, equalizer: (State, State) -> Boolean? = null, factory: <Error class: unknown class>.(State) -> Unit): W

An extension function which binds the container to the given ballast view model of a list of items.

fun <Inputs : Any, Events : Any, State : Any, T, W> W.bindEach(viewModel: <Error class: unknown class><Inputs, Events, State>, sub: (State) -> List<T>, equalizer: (T, T) -> Boolean? = null, factory: <Error class: unknown class>.(T) -> Unit): W

An extension function which binds the container to the given ballast view model using the sub extractor function to get a list of items.

Link copied to clipboard
fun <Inputs : Any, Events : Any, State : Any, W> W.bindSync(viewModel: <Error class: unknown class><Inputs, Events, State>, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: W.(State) -> Unit): W

An extension function which binds the widget to the given ballast view model synchronously. It's less efficient than bind, but fully compatible with KVision 4 state bindings.

fun <Inputs : Any, Events : Any, State : Any, T, W> W.bindSync(viewModel: <Error class: unknown class><Inputs, Events, State>, sub: (State) -> T, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: W.(T) -> Unit): W

An extension function which binds the widget to the given ballast view model synchronously using the sub extractor function. It's less efficient than bind, but fully compatible with KVision 4 state bindings.

Link copied to clipboard
fun <Inputs : Any, Events : Any, State : Any, W> W.insert(viewModel: <Error class: unknown class><Inputs, Events, State>, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: <Error class: unknown class>.(State) -> Unit): <Error class: unknown class>

An extension function which inserts child component and binds it to the given ballast view model.

fun <Inputs : Any, Events : Any, State : Any, T, W> W.insert(viewModel: <Error class: unknown class><Inputs, Events, State>, sub: (State) -> T, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: <Error class: unknown class>.(T) -> Unit): <Error class: unknown class>

An extension function which inserts child component and binds it to the given ballast view model using the sub extractor function.

Link copied to clipboard
fun <Inputs : Any, Events : Any, State : Any, T, W> W.insertNotNull(viewModel: <Error class: unknown class><Inputs, Events, State>, sub: (State) -> T?, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: <Error class: unknown class>.(T) -> Unit): <Error class: unknown class>

An extension function which inserts child component and binds it to the given ballast view model using the sub extractor function when the sub state value is not null.

Link copied to clipboard
fun <Inputs : Any, Events : Any, State : Any, W> W.insertWhen(viewModel: <Error class: unknown class><Inputs, Events, State>, condition: (State) -> Boolean, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: <Error class: unknown class>.(State) -> Unit): <Error class: unknown class>

An extension function which inserts child component and binds it to the given ballast view model when the given condition is true.

fun <Inputs : Any, Events : Any, State : Any, T, W> W.insertWhen(viewModel: <Error class: unknown class><Inputs, Events, State>, sub: (State) -> T, condition: (T) -> Boolean, removeChildren: Boolean = true, runImmediately: Boolean = true, factory: <Error class: unknown class>.(T) -> Unit): <Error class: unknown class>

An extension function which inserts child component and binds it to the given ballast view model using the sub extractor function when the given condition is true.