core
0.27.3
js
core
/
de.peekandpoke.kraft.addons.forms.collections
/
ListFieldComponent
/
ItemCtx
Item
Ctx
js
data
class
ItemCtx
<
T
>
(
val
idx
:
Int
,
val
item
:
T
,
val
all
:
List
<
T
>
,
val
modify
:
(
T
)
->
Unit
,
val
swapWith
:
(
idx
:
Int
)
->
Unit
,
val
remove
:
(
)
->
Unit
,
val
copy
:
(
T
)
->
Unit
,
keySuffix
:
String
)
Constructors
Functions
Properties
Constructors
Item
Ctx
Link copied to clipboard
js
fun
<
T
>
ItemCtx
(
idx
:
Int
,
item
:
T
,
all
:
List
<
T
>
,
modify
:
(
T
)
->
Unit
,
swapWith
:
(
idx
:
Int
)
->
Unit
,
remove
:
(
)
->
Unit
,
copy
:
(
T
)
->
Unit
,
keySuffix
:
String
)
Functions
dom
Key
Link copied to clipboard
js
fun
domKey
(
)
:
String
modifier
Link copied to clipboard
js
fun
<
V
>
modifier
(
block
:
T
.
(
value
:
V
)
->
T
)
:
(
V
)
->
Unit
Properties
all
Link copied to clipboard
js
val
all
:
List
<
T
>
copy
Link copied to clipboard
js
val
copy
:
(
T
)
->
Unit
idx
Link copied to clipboard
js
val
idx
:
Int
item
Link copied to clipboard
js
val
item
:
T
modify
Link copied to clipboard
js
val
modify
:
(
T
)
->
Unit
remove
Link copied to clipboard
js
val
remove
:
(
)
->
Unit
swap
With
Link copied to clipboard
js
val
swapWith
:
(
idx
:
Int
)
->
Unit