setDragBehavior

sets Drag-And-Drop behavior

void setDragBehavior(string mode);

Parameters

modestringthe name of the behavior

Example

mygrid.setDragBehavior("sibling");

Details

the possible variants of behavior mode:

  • child - the item is dropped as a child of the target item;
  • sibling - the item is dropped as a sibling of the target item; if drop occurs between the parent and the child elements, the item is moved to the parent level;
  • complex - the item is dropped as a sibling or a child depending on the position of the target item towards the landing; if drop occurs between the parent and the child elements, the item is moved to the parent level;
  • sibling-next - the item is dropped as a sibling of the target; if drop occurs between the parent and the child elements, the item is moved to the child level;
  • complex-next - the item is dropped as a sibling or a child depending on the position of the target item towards the landing; if drop occurs between the parent and the child elements, the item is moved to the child level.
Back to top