[Feature Request] Add colSpanAttrs on group.headers slot properties
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 41k
- Forks
- 7.1k
- Avg merge
- 1d 21h
- Merged PRs (30d)
- 11
Description
Problem to solve
It is not possible to determine the column span value needed to create the correct width for the group template unless you copy/paste code from VDataTable.
Proposed solution
The VDataTable correctly calculates the attribute for colspan for the element here:
If this.colspanAttrs() could simply be passed into the props for the slot, then the slot template can just use those attributes as well.
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 in packages/vuetify/src/components/VDataTable/VDataTable.ts around lines 351-354, where VDataTable calculates the colspan attributes. Trace the group.headers slot properties and determine how those attributes can be exposed there. Done means the group template can use colSpanAttrs to create the correct-width without copying VDataTable code.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100