icflorescu / mantine-datatable

The table component for your Mantine data-rich applications, supporting asynchronous data loading, column sorting, custom cell data rendering, context menus, nesting, Gmail-style batch row selection, dark theme, and more.
https://icflorescu.github.io/mantine-datatable/
MIT License
949 stars 68 forks source link

how to use sticky in header table ? #542

Closed mehdiraized closed 9 months ago

mehdiraized commented 9 months ago

i saw this options in documents

| 'stickyHeader'
| 'stickyHeaderOffset'

we can use this 2 option for make sticky header of rows ?

icflorescu commented 9 months ago

I assume you saw those as properties being omitted from the default Mantine table props, because in Mantine DataTable the header is sticky by default when required. Please refer to the documentation here: https://icflorescu.github.io/mantine-datatable/examples/scrollable-vs-auto-height/

mehdiraized commented 9 months ago

I want the 'sticky' feature to not only apply with added height, but also have the table header stick to the top of the page while scrolling the entire page.

Strajk commented 3 months ago

@mehdiraized hey, have you find a solution to the whole page scrolling + table header sticky?

mehdiraized commented 2 months ago

@mehdiraized hey, have you find a solution to the whole page scrolling + table header sticky?

no i didn't find any solution of this feature i haven't time to create new PR for add this feature to mantine-datatable but next month i can add this feature to repository