Orion Drag'n Drop
The drag'n drop feature is a combination of two components.
<o-droppable>
is used to create the drop zone.
It must be combined with the <o-draggable>
component, which will be an item of this component and can be dropped in different <o-droppable>
areas.
Take a look at the example's source code below to get a better idea of the mecanism.
DragNDropPlayground DroppableValidation
OrionDroppable
Props
Name
datalist
DataListItem[] = null
tag
string = 'div'
validation
Orion.DndValidation = null
Events
Name
Payload type
dropIn
any
dragOver
No payload
dragLeave
No payload
reorder
any
dropOut
any
update:datalist
any[]
Slots
Name
Bindings
default
No bindings
PublicInstance
Name
Type
uid
number
_el
(() => HTMLElement | undefined) | undefined
Provide
Name
Type
_droppable
publicInstance
OrionDraggable
Props
Name
data
Object = null
disabled
boolean = false
tag
string = 'div'
Events
Name
Payload type
update:disabled
boolean
Slots
Name
Bindings
default
No bindings