Skip to main content

dragMode

Optional. Enables drag-n-drop in List

dragMode?: string

Example

const list = new dhx.List("list_container", { 
dragMode:"source"
});

Related sample: List. Drag-n-drop

Drag-n-drop can work in three modes:

  • "target" - a list takes items from other lists, while its items can't be dragged out of it
  • "source" - a list allows dragging its items out and can't take items from other lists
  • "both" - a list both takes items from other lists and allows dragging its items out as well