Giter Club home page Giter Club logo

Comments (4)

coston avatar coston commented on May 24, 2024 1

Ahh, I get it now. Your table starts with two headers, then you add more, and it doesn't update. Add something that changes with the headers as the Table key, like products.length.

<Table
        key={products.length}
        border={0}
        className={classes.table}
        aria-label="simple table"
      >

Now, every time the products change, the header state will update.

from react-super-responsive-table.

jdrag12 avatar jdrag12 commented on May 24, 2024 1

Ok, that works. Thank you very much @coston .

from react-super-responsive-table.

coston avatar coston commented on May 24, 2024

Hey @jdrag12. Would you mind sharing the snippet with https://codesandbox.io or similar? I'll see if I can help.

from react-super-responsive-table.

jdrag12 avatar jdrag12 commented on May 24, 2024

Sure Coston, thanks a lot.

Codesandbox URL: https://codesandbox.io/s/crazy-kare-nr79u
Issue: The table is rendered dynamically according to the products selected; when more than 2 products are selected, the first 2 headers are the only ones visible for small devices.

from react-super-responsive-table.

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.