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

Feature Idea: Ways to insert rows/columns at a certain position, or move via drag 'n' drop? #37

Open
hfloyd opened this issue Jul 11, 2024 · 2 comments
Labels
type/idea An idea for a new feature.

Comments

@hfloyd
Copy link

hfloyd commented Jul 11, 2024

The "Add Row" and "Add Column" buttons add the new empty at the end of the current array. It would be great if there were some way to insert the row/column in a specific location, or move a row/column to a specific location after insertion.

@abjerner abjerner added the type/idea An idea for a new feature. label Jul 11, 2024
@abjerner
Copy link
Member

For another package I'm been working on, users manage a dataset (kinda like a table), and they can then insert columns and rows at specific positions by activating a custom right click menu. I've thought about adding that to this package as well - but then again that requires a bit of time.

I've noticed that Umbraco 14 has moved away from right click menus as those are apparently considered bad practice since they replace the browser default right click action. I do however think they still have their place in a CMS.

Being able to move columns and rows also makes sense. I'm not sure how being able to drag can be supported in a good way in the UI, but moving columns and rows could also be supported via the right click menu.

@hfloyd
Copy link
Author

hfloyd commented Jul 12, 2024

A right-click option could work nicely, almost like Excel (with insert before/after, and delete options)

Or perhaps a "+" button in front of each row/column would be a simpler possibility? Since a delete button is already getting added, seems adding two buttons instead would be easy enough.

Dragging something might be the most obvious UI to move things around, though if the implementation for that is too difficult, there could be some other option like a "move" button, with a prompt asking where to move to, kind of like how the "move" option works for nodes in the tree. Though it might all be clearer if there were numbers or letters labelling rows and columns.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type/idea An idea for a new feature.
Projects
None yet
Development

No branches or pull requests

2 participants