core
0.18.1
core
/
de.peekandpoke.kraft.components.state
/
ComponentStateProperty
Component
State
Property
class
ComponentStateProperty
<
T
>
(
component
:
Component
<
*
>
,
initialValue
:
T
,
onChange
:
(
T
)
->
Unit
?
=
null
)
:
ObservableProperty
<
T
>
Content copied to clipboard
Constructors
Functions
Constructors
Component
State
Property
Link copied to clipboard
fun
<
T
>
ComponentStateProperty
(
component
:
Component
<
*
>
,
initialValue
:
T
,
onChange
:
(
T
)
->
Unit
?
=
null
)
Content copied to clipboard
Functions
get
Value
Link copied to clipboard
open
operator override
fun
getValue
(
thisRef
:
Any
?
,
property
:
KProperty
<
*
>
)
:
T
Content copied to clipboard
on
Change
Link copied to clipboard
infix
fun
onChange
(
onChange
:
(
T
)
->
Unit
)
:
ComponentStateProperty
<
T
>
Content copied to clipboard
setup
By
Link copied to clipboard
infix
fun
setupBy
(
block
:
suspend
(
)
->
Unit
)
:
ComponentStateProperty
<
T
>
Content copied to clipboard
set
Value
Link copied to clipboard
open
operator override
fun
setValue
(
thisRef
:
Any
?
,
property
:
KProperty
<
*
>
,
value
:
T
)
Content copied to clipboard