@witchcraft/editor
Github
Issues
npm
Preparing search index...
pm/features/Blocks/commands/copyOrMoveItem
copyOrMoveItem
Function copyOrMoveItem
copyOrMoveItem
(
__namedParameters
?:
{
itemNodeTypeName
?:
string
;
listNodeTypeName
?:
string
;
}
,
)
:
(
itemPos
:
number
,
moveItemPos
:
number
,
position
:
"child"
|
"before"
|
"after"
,
__namedParameters
?:
{
move
?:
boolean
}
,
)
=>
Command
Copies or moves a single list item. This is for using while dragging an item.
Parameters
__namedParameters
:
{
itemNodeTypeName
?:
string
;
listNodeTypeName
?:
string
}
= {}
Returns
(
itemPos
:
number
,
moveItemPos
:
number
,
position
:
"child"
|
"before"
|
"after"
,
__namedParameters
?:
{
move
?:
boolean
}
,
)
=>
Command
Settings
Member Visibility
Protected
Inherited
Theme
OS
Light
Dark
Github
Issues
npm
@witchcraft/editor
Loading...
Copies or moves a single list item. This is for using while dragging an item.