Preparing search index...
@universe-dg/sdk
Universe
Platform
Uikit
DragDropContextProps
Interface DragDropContextProps
Public
interface
DragDropContextProps
{
children
:
ReactNode
;
dragHandleUsageInstructions
?:
string
;
enableDefaultSensors
?:
boolean
;
nonce
?:
string
;
sensors
?:
(
(
api
:
{
canGetLock
:
(
id
:
string
)
=>
boolean
;
findClosestDraggableId
:
(
event
:
Event
)
=>
null
|
string
;
findOptionsForDraggable
:
(
id
:
string
,
)
=>
|
null
|
{
canDragInteractiveElements
:
boolean
;
isEnabled
:
boolean
;
shouldRespectForcePress
:
boolean
;
}
;
isLockClaimed
:
()
=>
boolean
;
tryGetLock
:
(
draggableId
:
string
,
forceStop
?:
()
=>
void
,
options
?:
{
sourceEvent
?:
Event
}
,
)
=>
null
|
PreDragActions
;
tryReleaseLock
:
()
=>
void
;
}
,
)
=>
void
)
[]
;
onBeforeCapture
(
before
:
BeforeCapture
)
:
void
;
onBeforeDragStart
(
initial
:
DragStart
)
:
void
;
onDragEnd
(
result
:
DropResult
,
provided
:
{
announce
:
(
message
:
string
)
=>
void
}
,
)
:
void
;
onDragStart
(
initial
:
DragStart
,
provided
:
{
announce
:
(
message
:
string
)
=>
void
}
,
)
:
void
;
onDragUpdate
(
initial
:
DragUpdate
,
provided
:
{
announce
:
(
message
:
string
)
=>
void
}
,
)
:
void
;
}
Index
Properties
children
drag
Handle
Usage
Instructions?
enable
Default
Sensors?
nonce?
sensors?
Methods
on
Before
Capture?
on
Before
Drag
Start?
on
Drag
End
on
Drag
Start?
on
Drag
Update?
Properties
children
children
:
ReactNode
Optional
drag
Handle
Usage
Instructions
dragHandleUsageInstructions
?:
string
Optional
enable
Default
Sensors
enableDefaultSensors
?:
boolean
Optional
nonce
nonce
?:
string
Optional
sensors
sensors
?:
(
(
api
:
{
canGetLock
:
(
id
:
string
)
=>
boolean
;
findClosestDraggableId
:
(
event
:
Event
)
=>
null
|
string
;
findOptionsForDraggable
:
(
id
:
string
,
)
=>
|
null
|
{
canDragInteractiveElements
:
boolean
;
isEnabled
:
boolean
;
shouldRespectForcePress
:
boolean
;
}
;
isLockClaimed
:
()
=>
boolean
;
tryGetLock
:
(
draggableId
:
string
,
forceStop
?:
()
=>
void
,
options
?:
{
sourceEvent
?:
Event
}
,
)
=>
null
|
PreDragActions
;
tryReleaseLock
:
()
=>
void
;
}
,
)
=>
void
)
[]
Methods
Optional
on
Before
Capture
onBeforeCapture
(
before
:
BeforeCapture
)
:
void
Parameters
before
:
BeforeCapture
Returns
void
Optional
on
Before
Drag
Start
onBeforeDragStart
(
initial
:
DragStart
)
:
void
Parameters
initial
:
DragStart
Returns
void
on
Drag
End
onDragEnd
(
result
:
DropResult
,
provided
:
{
announce
:
(
message
:
string
)
=>
void
}
,
)
:
void
Parameters
result
:
DropResult
provided
:
{
announce
:
(
message
:
string
)
=>
void
}
Returns
void
Optional
on
Drag
Start
onDragStart
(
initial
:
DragStart
,
provided
:
{
announce
:
(
message
:
string
)
=>
void
}
,
)
:
void
Parameters
initial
:
DragStart
provided
:
{
announce
:
(
message
:
string
)
=>
void
}
Returns
void
Optional
on
Drag
Update
onDragUpdate
(
initial
:
DragUpdate
,
provided
:
{
announce
:
(
message
:
string
)
=>
void
}
,
)
:
void
Parameters
initial
:
DragUpdate
provided
:
{
announce
:
(
message
:
string
)
=>
void
}
Returns
void
On This Page
Properties
children
drag
Handle
Usage
Instructions
enable
Default
Sensors
nonce
sensors
Methods
on
Before
Capture
on
Before
Drag
Start
on
Drag
End
on
Drag
Start
on
Drag
Update
Юниверс DG SDK UI
Loading...
Public