kvision / pl.treksoft.kvision.state / StateBinding / <init>

<init>

(js) StateBinding(observableState: ObservableState<S>, container: CONT, factory: CONT.(S) -> CONTENT)

Creates StateBinding which binds the given container to the observable state.

Parameters

S - the state type

CONT - container type

observableState - the state

container - the container

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

Constructor
Creates StateBinding which binds the given container to the observable state.