framework7io / framework7io/framework7
[data-table] provide "fixHeader/fixColumn/fixRows" as "data-table"-parameters
Open
Nobody has claimed this yet.
Feature Request
- Dominant language
- JavaScript
- Stars
- 18.8k
- Forks
- 3.2k
- PR merge metrics
- No merged PRs in 30d
Description
-
enhancement
-
Framework7 Version: 2
Would be nice to have the following datatable-properties https://framework7.io/docs/data-table.html#data-table-parameters for "columns" and "rows" freezing:
- fixHeader: fixes the header while scrolling to bottom (like "Grouped with sticky titles" of https://framework7.io/docs/list-view.html#grouped-lists)
- fixColumns: fixes a list of columns while scrolling to right/left.
For example, fixColumn={id1}: first column (with id1) is fixed while scrolling to right.
For example, fixColumn={id1, id5}: there are 8 columns, id1 is the first column, id5 is at position 5. So when user scrolls to right, then first column is fixed and when scrolling to position after 5, then the two columns (id1, id5) are fixed and visible at the left side. - fixRows: fixes a list of rows while scrolling to top/bottom
For example, fixRows={id1, id5}: there are 8 columns, id1 is the first row, id5 is at position 5. So when user scrolls to bottom, then first column is fixed at the top and when scrolling to position after 5, then the two columns (id1, id5) are fixed and visible at the top after the header (which can also be fixed)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the data-table parameters in the linked Framework7 documentation, then compare the grouped-list sticky-title behavior linked in the issue. Define how fixHeader, fixColumns, and fixRows should behave during scrolling, including the stated column and row examples. Done means the data-table supports these freezing options consistently.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100