nick-keller / react-datasheet-grid

An Airtable-like / Excel-like component to create beautiful spreadsheets.
MIT License
1.81k stars 170 forks source link

Horizontal expanding selection #265

Closed OleksandrTaranFrienton closed 1 year ago

OleksandrTaranFrienton commented 1 year ago

Hi, thank you at first for this awesome library. The docs tell about the "expanding selection" feature that works only vertically, i.e. values are copied from a row to the next rows. A common Excel-like function is to have horizontal expansion that would be the same as https://react-datasheet-grid.netlify.app/docs/features#expanding-selection but instead copying values from a column to the next columns. Are you planning to support it?

Thank you in advance!

nick-keller commented 1 year ago

Hi @OleksandrTaranFrienton and thx for the feedback ;) This feature is not planned because it does not feel right. DSG is column based, it makes sense to expand a selection vertically because a column has all its rows similar. But horizontally? What if you have a number, a country, and a date column, shat should happen?

I hope you see my point, if you have a counter argument feel free to explain and I will consider it, in the meantime I'm solving this discussion ;)