Preparing search index...
The search index is not available
Юниверс MDM SDK UI
@universe-ee/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
drag
Handle
Usage
Instructions
?:
string
Optional
enable
Default
Sensors
enable
Default
Sensors
?:
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
on
Before
Capture
(
before
)
:
void
Parameters
before
:
BeforeCapture
Returns
void
Optional
on
Before
Drag
Start
on
Before
Drag
Start
(
initial
)
:
void
Parameters
initial
:
DragStart
Returns
void
on
Drag
End
on
Drag
End
(
result
,
provided
)
:
void
Parameters
result
:
DropResult
provided
:
{
announce
:
(
(
message
:
string
)
=>
void
)
;
}
announce
:
(
(
message
:
string
)
=>
void
)
(
message
)
:
void
Parameters
message
:
string
Returns
void
Returns
void
Optional
on
Drag
Start
on
Drag
Start
(
initial
,
provided
)
:
void
Parameters
initial
:
DragStart
provided
:
{
announce
:
(
(
message
:
string
)
=>
void
)
;
}
announce
:
(
(
message
:
string
)
=>
void
)
(
message
)
:
void
Parameters
message
:
string
Returns
void
Returns
void
Optional
on
Drag
Update
on
Drag
Update
(
initial
,
provided
)
:
void
Parameters
initial
:
DragUpdate
provided
:
{
announce
:
(
(
message
:
string
)
=>
void
)
;
}
announce
:
(
(
message
:
string
)
=>
void
)
(
message
)
:
void
Parameters
message
:
string
Returns
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
Юниверс MDM SDK UI
Loading...
Public