Giter VIP home page Giter VIP logo

Comments (3)

LiuChuan-g avatar LiuChuan-g commented on July 23, 2024 1

You can then sync their horizontal scroll offsets so they functionally and visually behave like a single table to the end user.
We have used this approach in one of our internal applications to simulate pinned/fixed rows and vertically spanned headers.
I can cook up a codesandbox example in the next day or two if that helps.

@LiuChuan-g , here's a very hacky PoC that does the job: https://codesandbox.io/s/fdt2-multi-level-spanned-headers-poc-f8gt0w?file=/src/index.js. Feel free to play around and ping me if anything is unclear.

help me lot!!! you must be a genius.

from fixed-data-table-2.

pradeepnschrodinger avatar pradeepnschrodinger commented on July 23, 2024

Unfortunately we only support 2 levels of headers at this point.

There's a long term goal to support multi-level headers but we haven't made any traction for it in a while.
Some discussions we had in the past can be seen at #237 and #27 (comment).

With that said, you should be able to stitch/render 2 (or more) separate table instances such that each header is rendered by a different table.
You can then sync their horizontal scroll offsets so they functionally and visually behave like a single table to the end user.
We have used this approach in one of our internal applications to simulate pinned/fixed rows and vertically spanned headers.
I can cook up a codesandbox example in the next day or two if that helps.

from fixed-data-table-2.

pradeepnschrodinger avatar pradeepnschrodinger commented on July 23, 2024

You can then sync their horizontal scroll offsets so they functionally and visually behave like a single table to the end user.
We have used this approach in one of our internal applications to simulate pinned/fixed rows and vertically spanned headers.
I can cook up a codesandbox example in the next day or two if that helps.

@LiuChuan-g , here's a very hacky PoC that does the job: https://codesandbox.io/s/fdt2-multi-level-spanned-headers-poc-f8gt0w?file=/src/index.js.
Feel free to play around and ping me if anything is unclear.

from fixed-data-table-2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.