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

Incorrect nested header - colspan vaue not correct #1442

Open
ecofi opened this issue May 13, 2024 · 0 comments
Open

Incorrect nested header - colspan vaue not correct #1442

ecofi opened this issue May 13, 2024 · 0 comments

Comments

@ecofi
Copy link

ecofi commented May 13, 2024

Describe the bug
If the parent column includes only one child column and the child columns includes multiple columns, the header of the parent column is incorrect. I did not test if other scenarios are possible also resulting in incorrect colspan value and might be assesses in fixing the issue.

To Reproduce
Steps to reproduce the behavior:
This is an example, modified from example page here: https://gridjs.io/docs/examples/nested-header
const grid = new Grid({ columns: [ { name: 'Test', columns:[ { name: 'Name', columns: [{ name: 'First' }, { name: 'Last' }] } ] } ], data: Array(50).fill().map(x => [ faker.name.firstName(), faker.name.lastName(), faker.internet.email(), ]) });

The parent column header "Test" does not cover the full table.

Expected behavior
In the above example, the parent column header "Test" should span across the full table

Screenshots
See attached screenshot
Screenshot from 2024-05-13 09-08-07

Additional context
I really like the nested header feature.

I updated the initial post with an better example

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant