bindEach

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

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

Parameters

Inputs

the inputs type

Events

the events type

State

the state type

W

the container type

viewModel

the ballast view model instance

equalizer

optional custom equalizer function

factory

a function which re-creates the view based on the given state


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

Parameters

Inputs

the inputs type

Events

the events type

State

the state type

T

the sub state type

W

the container type

viewModel

the ballast view model instance

sub

an extractor function

equalizer

optional custom equalizer function

factory

a function which re-creates the view based on the given state


fun <S, W : SimplePanel> W.bindEach(stateFlow: <Error class: unknown class><List<S>>, equalizer: (S, S) -> Boolean? = null, factory: SimplePanel.(S) -> Unit): W

An extension function which binds the container to the given state flow of a list of items.

Parameters

S

the state type

W

the container type

stateFlow

the StateFlow instance

equalizer

optional custom equalizer function

factory

a function which re-creates the view based on the given state


fun <S, T, W : SimplePanel> W.bindEach(stateFlow: <Error class: unknown class><S>, sub: (S) -> List<T>, equalizer: (T, T) -> Boolean? = null, factory: SimplePanel.(T) -> Unit): W

An extension function which binds the container to the given state flow using the sub flow extractor to get a list of items.

Parameters

S

the state type

T

the sub state type

W

the container type

stateFlow

the StateFlow instance

sub

an extractor function for sub flow

equalizer

optional custom equalizer function

factory

a function which re-creates the view based on the given state


fun <S, W : SimplePanel> W.bindEach(observableState: ObservableState<List<S>>, equalizer: (S, S) -> Boolean? = null, factory: W.(S) -> Unit): W

An extension function which binds the container to the observable state with a list of items.

Parameters

S

the state type

W

the container type

observableState

the state

equalizer

optional custom equalizer function

factory

a function which re-creates the view based on the given state


fun <S, T, W : SimplePanel> W.bindEach(observableState: ObservableState<S>, sub: (S) -> List<T>, equalizer: (T, T) -> Boolean? = null, factory: SimplePanel.(T) -> Unit): W

An extension function which binds the container to the observable state with a list of items using the sub state extractor.

Parameters

S

the state type

T

the sub state type

W

the container type

observableState

the state

sub

an extractor function for sub state

equalizer

optional custom equalizer function

factory

a function which re-creates the view based on the given state