core
0.40.1
js
core
/
de.peekandpoke.kraft.addons.forms.collections
/
ListFieldComponent
/
Props
Props
js
data
class
Props
<
T
>
(
val
items
:
List
<
T
>
,
val
onChange
:
(
List
<
T
>
)
->
Unit
,
val
renderItem
:
FlowContent
.
(
ListFieldComponent.ItemCtx
<
T
>
)
->
Unit
,
val
renderAdd
:
FlowContent
.
(
ListFieldComponent.AddCtx
<
T
>
)
->
Unit
)
Members
Constructors
Props
Link copied to clipboard
js
constructor
(
items
:
List
<
T
>
,
onChange
:
(
List
<
T
>
)
->
Unit
,
renderItem
:
FlowContent
.
(
ListFieldComponent.ItemCtx
<
T
>
)
->
Unit
,
renderAdd
:
FlowContent
.
(
ListFieldComponent.AddCtx
<
T
>
)
->
Unit
)
Properties
items
Link copied to clipboard
js
val
items
:
List
<
T
>
on
Change
Link copied to clipboard
js
val
onChange
:
(
List
<
T
>
)
->
Unit
render
Add
Link copied to clipboard
js
val
renderAdd
:
FlowContent
.
(
ListFieldComponent.AddCtx
<
T
>
)
->
Unit
render
Item
Link copied to clipboard
js
val
renderItem
:
FlowContent
.
(
ListFieldComponent.ItemCtx
<
T
>
)
->
Unit