Giter Site home page Giter Site logo

Add option for vertical tables. about table HOT 6 CLOSED

tanstack avatar tanstack commented on July 19, 2024 9
Add option for vertical tables.

from table.

Comments (6)

bwood1 avatar bwood1 commented on July 19, 2024 3

I was able to get it to look the way I wanted using the following JSON

"data": [{
"title": "title1",
"value": "value1"
},{
"title": "title2",
"value": "value2"
},{
"title": "title3",
"value": "value3"
},{
"title": "title4",
"value": "value4"
}],
"columns": [{
"columns": [{
"header": "Title",
"accessor": "title"
}, {
"header": "Value",
"accessor": "value"
}]
}]

It produces a table that looks like this

screen shot 2018-06-11 at 8 35 43 pm

from table.

norvalbv avatar norvalbv commented on July 19, 2024 2

Unfortunately this doesn't seem to work with V8. Is there an update for this? @bwood1

from table.

tannerlinsley avatar tannerlinsley commented on July 19, 2024

Interesting use case! I'm not sure that react-table is capable of handling this without a significant rewrite of the view logic. But, there's good news to that statement! If you felt inclined, you could implement your very own view logic (using as much or as little of react table as you want). The Functional Rendering section of the docs shows the tip of the iceberg on how this could be accomplished.

If you end up trying this out, I would love to hear about your experience! In the meantime however, react-table won't be able to support this feature out of the box :/

from table.

abhiox avatar abhiox commented on July 19, 2024

So, did you end up trying this out, @bwood1 ?

from table.

khushijain21 avatar khushijain21 commented on July 19, 2024

does react-table support this feature now?

from table.

khushijain21 avatar khushijain21 commented on July 19, 2024

Hello, @tannerlinsley I'd like to try implementing this feature, could you direct?

from 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.