Absolutely! Here’s a summary and tailored recommendation based on your scenario:
1. Summary of the Article
The article "UX Pattern: Drag and Drop" discusses the pros and cons of using drag-and-drop interfaces for reordering or moving items, especially in complex structures like trees or lists. Key points include:
- Drag-and-drop is intuitive for direct manipulation, especially in visual contexts.
- It can be cumbersome for precise placement, especially in large or deeply nested structures.
- Alternatives like up/down buttons, context menus, or explicit "move to" dialogs can sometimes be more efficient, especially for complex or non-visual structures.
- Accessibility and discoverability are important: drag-and-drop can be hard for keyboard users or those with motor impairments.
2. Your Scenario
- You have a tree (graph) structure.
- Leaves (end nodes) are displayed as elements in a grid (like screens in a control room).
- You want to modify the order of display (the grid arrangement), but from the tree design, not from the grid itself.
3. Recommended Solution
Why Not Drag-and-Drop in the Tree?
- Drag-and-drop in a tree is great for moving nodes, but reordering leaves (which affects a grid elsewhere) can be confusing:
- The spatial relationship in the tree may not map 1:1 to the grid.
- Users may not realize that reordering in the tree changes the grid order.
- Drag-and-drop in trees can be fiddly, especially with many nodes.
Best Solution: Explicit Reordering Controls in the Tree
I recommend using explicit reordering controls (e.g., up/down arrows or a "reorder" dialog) in the tree interface for the leaves.
- How it works:
- In the tree, each leaf node (representing a screen in the grid) has up/down buttons or a "move to position" option.
- When a user reorders leaves in the tree, the grid updates to reflect the new order.
- This makes the relationship between the tree and the grid explicit and manageable.
- Why this is better:
- Precision: Users can move items exactly where they want, even in long lists.
- Clarity: The order in the tree directly controls the grid, making the mapping clear.
- Accessibility: Up/down buttons or dialogs are easier to use with keyboard and assistive tech.
- Scalability: Works well even with many leaves.
Optional: "Reorder" Mode
- For even more flexibility, consider a "reorder mode" in the tree:
- User clicks "Reorder," then can drag to reorder leaves or use keyboard shortcuts.
- When done, they save/apply the new order, which updates the grid.
4. Summary Table
| Solution | Pros | Cons |
|---|
| Drag-and-drop in tree | Intuitive for small lists | Hard for large/deep trees, less precise |
| Up/down buttons | Precise, accessible, clear mapping | Slower for big moves |
| "Move to position" | Very precise, good for long lists | Slightly more complex UI |
| Reorder mode (optional) | Flexible, supports both drag and keyboard | More complex to implement |
Conclusion
Use explicit reordering controls (up/down or "move to position") in the tree for leaves.
This approach is clear, precise, and accessible, and it makes the relationship between the tree and the grid obvious to users.
If you want to discuss implementation details or see UI examples, let me know!