Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Add colSpanAttrs on group.headers slot properties #11384

Open
ksummerlin opened this issue May 12, 2020 · 0 comments
Open

[Feature Request] Add colSpanAttrs on group.headers slot properties #11384

ksummerlin opened this issue May 12, 2020 · 0 comments
Labels
C: VDataTable VDatatable

Comments

@ksummerlin
Copy link

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:

const column = this.$createElement('td', {
staticClass: 'text-start',
attrs: this.colspanAttrs,
}, [toggle, `${props.options.groupBy[0]}: ${group}`, remove])

If this.colspanAttrs() could simply be passed into the props for the slot, then the slot template can just use those attributes as well.

@ghost ghost added the S: triage label May 12, 2020
@johnleider johnleider added the C: VDataTable VDatatable label Jun 22, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: VDataTable VDatatable
Projects
None yet
Development

No branches or pull requests

2 participants