drag
enables or disables drag-and-drop
let drag: boolean|string
Values
Section titled “Values”- true - enables DnD within the component, allows taking items into its other instances and different components on the page;
- “order” - enables DnD in the reorder mode, allows dragging component items within one component thus changing their order;
- “move” - enables DnD that allows to move out dragged nodes;
- “inner” - is a simplified variation of “order”, during which the dragged item does not reserve a place for itself and can be dragged outside the component borders;
- “source” - enables dragging items from the component without an ability to drop data from other components;
- “target” - enables dropping data to the component. It can take data from outside, but you cannot drag anything from it;
- false - disables DnD within the component.
Example
Section titled “Example”webix.grid({ drag:true});
also check the next samples:
- Drag-and-Drop between Grids in DataGrid
- Enabling Drag-and-Drop in Tree
- Drag-and-Drop with List Items
See also
Section titled “See also”Articles