Options
All
  • Public
  • Public/Protected
  • All
Menu

组件拖拽事件

Hierarchy

  • Event
    • SortableEvent

Index

Properties

afterEl

afterEl: HTMLElement

前面的元素

beforeEl

beforeEl: HTMLElement

后面的元素

clone

clone: HTMLElement

拖拽时复制的元素

from

from: HTMLElement

previous list 拖拽的来源容器元素

item

item: HTMLElement

dragged element 拖拽的元素

newDraggableIndex

newDraggableIndex: number

New index within parent, only counting draggable elements

newIndex

newIndex: number

new index within parent 新的位置

newIndicies

newIndicies: { index: number; multiDragElement: HTMLElement }[]

When MultiDrag is used to sort, this holds a HTMLElement and newIndex for each item.

oldIndicies[number] is directly related to newIndicies[number]

If MultiDrag is not used to sort, this array will be empty.

oldDraggableIndex

oldDraggableIndex: number

Old index within parent, only counting draggable elements

oldIndex

oldIndex: number

old index within parent 旧的位置

oldIndicies

oldIndicies: { index: number; multiDragElement: HTMLElement }[]

When MultiDrag is used to sort, this holds a HTMLElement and oldIndex for each item selected.

oldIndicies[number] is directly related to newIndicies[number]

If MultiDrag is not used to sort, this array will be empty.

originalEvent

originalEvent: any

pullMode

pullMode: boolean | "clone"

Pull mode if dragging into another sortable 拖拽的方式

swapItem

swapItem: HTMLElement

When Swap is used to sort, this will contain the dragging item that was dropped on. 排序时候使用,

target

target: HTMLElement

鼠标在什么元素上面

to

to: HTMLElement

list, in which moved element. 目标的容器元素

Generated using TypeDoc