bluewatertracks / bwt-datatable

Data table with Polymer 3 support!
GNU General Public License v3.0
42 stars 14 forks source link

Is there any way to fix headers positions #8

Closed mukuls-brdsys closed 7 years ago

mukuls-brdsys commented 7 years ago

Can the headers be prevented from scrolling with the content? So the user can see what the column refers to while scrolling.

dhrytsenko commented 7 years ago

Hi @mukuls-brdsys! Do you mean headers for each columns? Can you describe the situation in which we need this stuff? I think you ask about resize-behavior prop equal to overflow

mukuls-brdsys commented 7 years ago

Yes, headers for each column. This could be useful when there are many rows without pagination. So if the user scrolls down sometimes it is not clear what the column represents. I, for example, was using the component to display user preferences which contain checkboxes. So when the user scrolls down it is not clear which column represent which preference.

dhrytsenko commented 7 years ago

Hi @mukuls-brdsys! I think it makes sense. I'll try to find a way to add this feature

dhrytsenko commented 7 years ago

Hi @mukuls-brdsys! I just update a version of datatable with new changes. You can fix a table header to the top now. Check this and example in readme

mukuls-brdsys commented 7 years ago

Thanks. Appreciate it.