Open Xhale1 opened 2 years ago
Good :ok_hand:
Could we also add an item to the roadmap to improve the developper experience. We could investigate a way to introduce new hooks to create draggables and droppables instead of using render function e.g.
Current render function API
<Draggable draggableId={item.id} index={index}>
{(
dragProvided: DraggableProvided,
dragSnapshot: DraggableStateSnapshot,
) => (
<Item
key={item.id}
item={item}
isDragging={dragSnapshot.isDragging}
isGroupedOver={Boolean(dragSnapshot.combineTargetFor)}
provided={dragProvided}
/>
)}
</Draggable>
What a hooks API could look like
const {
draggableProvided
draggableStateSnapshot,
} = useDraggable({ draggableId: item.id, index });
<Item
key={item.id}
item={item}
isDragging={dragSnapshot.isDragging}
isGroupedOver={Boolean(dragSnapshot.combineTargetFor)}
provided={dragProvided}
/>
EDIT: This could serves has an inspiration: https://github.com/thisbeyond/solid-dnd#how-do-i-get-started-
An other item could be to investigate how we could leverage GitHub discussions.
EDIT: Just saw that it was already open! :tada: https://github.com/hello-pangea/dnd/discussions/417
Could also be nice to observe/watch the code coverage of the library.
Hello - I am having trouble using @atlaskit/trees in my project. I'm a newbie coder, but the errors I'm getting are with out of date dependencies. I am already using RBD (soon switching to RFD), and I'd love to implement trees using the package. Do you folks have implementing trees as a feature anywhere on your radar?
Tree & Grid would be awesome additions
yes tree grid is a really good example
What's the plan for the tree grid?
This issue will serve as a living document of our short and long-term goals for this project.
In no particular order: