mdgriffith / elm-ui

What if you never had to write CSS again?
https://package.elm-lang.org/packages/mdgriffith/elm-ui/latest/
BSD 3-Clause "New" or "Revised" License
1.34k stars 110 forks source link

Add capability to fix columns and rows for the `Element.table` function when table is scrollable. #219

Open asett0 opened 4 years ago

asett0 commented 4 years ago

In a lot of data table libraries there's capability to fix columns and rows when the table is scrollable, analogous to how rows and columns can be frozen in Microsoft Excel.

Personally, I think this would be a nice feature to have in the Element.table function in elm-ui however I have no idea what the best API implementation would be for this.

Obviously it wouldn't make much sense to be able to fix the third column and not fix the first two. Maybe a good starting point would be to add the capability to fix the column headers?

mdgriffith commented 4 years ago

When you say fix do you mean something like position: sticky?

asett0 commented 4 years ago

Yep. Apologies for not being clear.