Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(component): Add drag and drop support to table component #484

Merged
merged 6 commits into from
Jan 13, 2021

Conversation

animesh1987
Copy link
Contributor

@animesh1987 animesh1987 commented Dec 16, 2020

What

Add drag and drop support to Table component.

Why

Feature request for Drag and Drop

Animated GIF-downsized (9)

ping @bigcommerce/frontend @deini @chanceaclark

@animesh1987
Copy link
Contributor Author

animesh1987 commented Dec 16, 2020

On exploring further realised that React.TableHTMLAttributes already has a draggable and onDragEnd defined. Hence went with dragAndDrop, which is an object that has the method.

Particularly not happy with this approach, and would rather support the native type. But in that case onDragEnd interface becomes a bit tricky for end consumer in my opinion.

Happy to hear thoughts on this?

@bookernath
Copy link

FYI @bigcommerce/artemis-dt

@animesh1987 animesh1987 merged commit c29d8bf into bigcommerce:master Jan 13, 2021
@animesh1987 animesh1987 deleted the drag-and-drop branch January 13, 2021 00:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants