kvision
Toggle table of contents
8.2.0
js
Platform filter
js
Switch theme
Search in API
kvision
kvision-state
/
io.kvision.state
/
bindTo
bind
To
fun
<
S
,
T
:
GenericFormComponent
<
S
>
>
T
.
bindTo
(
state
:
MutableState
<
S
>
)
:
T
(
source
)
fun
<
T
:
GenericFormComponent
<
String
?
>
>
T
.
bindTo
(
state
:
MutableState
<
String
>
)
:
T
(
source
)
fun
<
T
:
GenericFormComponent
<
Number
?
>
>
T
.
bindTo
(
state
:
MutableState
<
Int
?
>
)
:
T
(
source
)
fun
<
T
:
GenericFormComponent
<
Number
?
>
>
T
.
bindTo
(
state
:
MutableState
<
Int
>
)
:
T
(
source
)
fun
<
T
:
GenericFormComponent
<
Number
?
>
>
T
.
bindTo
(
state
:
MutableState
<
Double
?
>
)
:
T
(
source
)
fun
<
T
:
GenericFormComponent
<
Number
?
>
>
T
.
bindTo
(
state
:
MutableState
<
Double
>
)
:
T
(
source
)
fun
<
T
:
GenericFormComponent
<
Date
?
>
>
T
.
bindTo
(
state
:
MutableState
<
Date
>
)
:
T
(
source
)
Bidirectional data binding to the MutableState instance.
Return
current component
Parameters
state
the MutableState instance