Skip to main content

dragMode

Optional. Enables drag-n-drop in DataView

dragMode?: "target" | "source" | "both";

Example

const dataview = new dhx.DataView("dataview_container", { 
dragMode:"source"
});

Related sample: Dataview. Drag'n'drop

Drag-n-drop can work in three modes:

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