Git Product home page Git Product logo

Comments (6)

stevie-mayhew avatar stevie-mayhew commented on April 28, 2024

It looks like it hasn't been implemented in the Panel class yet. You could create a pull request and add the functionality, which would be awesome.

from react-bootstrap.

stevoland avatar stevoland commented on April 28, 2024

@stevie-mayhew why would this be implemented in Panel? It seems to me that Table is a standalone component that can be a child of a Panel http://getbootstrap.com/css/#tables

from react-bootstrap.

daGrevis avatar daGrevis commented on April 28, 2024

Yes, I agree with @stevoland. It should be standalone.

I could make a pull request with something like this. What do you think?

from react-bootstrap.

stevoland avatar stevoland commented on April 28, 2024

I think at the moment we have steered away from creating children from data passed as props. As a first pass I think a Table component should just implement an API like:

<Table striped={true} hover={true} responsive={true} ... >
    <tbody>
         <tr>
              ...
         </tr>
    </tbody>
</Table>

I think in the future there might be scope for another project that builds on react-bootstrap to generate components more programatically.

A PR like this would be fantastic!

from react-bootstrap.

daGrevis avatar daGrevis commented on April 28, 2024

But how can you pass data to it if we don't pass in data as property?

from react-bootstrap.

stevoland avatar stevoland commented on April 28, 2024

You don't pass data in, your parent component renders the Table instance and it's children (all the TRs and TDs)

from react-bootstrap.

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.