gzimbron / svelte-datagrid

MIT License
10 stars 0 forks source link

Add frozen columns #35

Open lairdresearch opened 4 months ago

lairdresearch commented 4 months ago

Describe the feature in detail (code, mocks, or screenshots encouraged)

In addition to a frozen header, a frozen left column (1 or more) would be helpful.

What type of pull request would this be?

Enhancement

Provide relevant links or additional information.

No response

gzimbron commented 4 months ago

Hi @lairdresearch ,

Could you be more specific with this request?

lairdresearch commented 4 months ago

Currently, the headers can be frozen (ie. don't scroll offscreen when scrolling down). It would also be helpful to have a column pinned so it doesn't scroll off screen when scrolling right.

A use case would be a "Name" column on the left of the table, followed by a bunch of data columns extending past the right of the table. If you scrolled to these offscreen columns, the Name column would be pinned to the right.

I'm thinking about frozen columns and rows in Excel as an example.