bind Each
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.
Parameters
Inputs
the inputs type
Events
the events type
State
the state type
W
the container type
view Model
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> 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.
Parameters
Inputs
the inputs type
Events
the events type
State
the state type
T
the sub state type
W
the container type
view Model
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