Skip to content

Commit 6672b00

Browse files
committed
[update] complete the treegrid section on drop behaviour
1 parent 23b7000 commit 6672b00

5 files changed

Lines changed: 14 additions & 0 deletions

File tree

31.2 KB
Loading
26.7 KB
Loading
31 KB
Loading
27.3 KB
Loading

docs/grid/treegrid_mode.md

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,21 @@ You can specify the drag-n-drop behaviour of items in the Grid in the TreeGrid m
212212
There are three modes of behaviour of a dragged item:
213213

214214
- "child" - a dragged item becomes a child of the item it is dragged to
215+
216+
The images below show drag-n-drop behaviour of items within a Grid in the TreeGrid mode with the `dropBehaviour: "child"` configuration setting applied:
217+
218+
| Dragging an item | Result |
219+
|-----------------------------------------------------------|-----------------------------------------------------------|
220+
|![](../assets/treegrid/dropbehaviour_child.png) | ![](../assets/treegrid/dropbehaviour_child_result.png) |
221+
215222
- "sibling" - a dragged item becomes a sibling of the item it is dragged to
223+
224+
The images below show the drag-n-drop behaviour of items within a Grid in the TreeGrid mode with the `dropBehaviour: "sibling"` configuration setting applied:
225+
226+
| Dragging an item | Result |
227+
|----------------------------------------------------------- |----------------------------------------------------------- |
228+
|![](../assets/treegrid/dropbehaviour_sibling_dragging.png) | ![](../assets/treegrid/dropbehaviour_sibling_result.png) |
229+
216230
- "complex" - a dragged item can become both a child or a sibling of a target item, depending on the position specified by highlighting
217231

218232
~~~jsx

0 commit comments

Comments
 (0)