Giter Club home page Giter Club logo

Comments (5)

jedib0t avatar jedib0t commented on May 18, 2024 3

This should be possible. But the way the code is structured currently, it may prove to be a little difficult with the coloring options. I'll look into this.

from go-pretty.

infalmo avatar infalmo commented on May 18, 2024

Even if flipping is not possible, adding a completely new table configuration would be equally good.

from go-pretty.

lepasq avatar lepasq commented on May 18, 2024

Hi! I'd like to work on this issue.
My approach would be to add a method in table/table.go, which either simply swaps the contents of the columns and the rows, or which would create an entirely new table and then fill up the rows and columns invertedly. Is there anything that I should take into account, such as any side effects that could happen?

from go-pretty.

jedib0t avatar jedib0t commented on May 18, 2024

@lepasq Inverting is part of the task. The other would be to reconcile the styling, Column/Row configs, the sorting, etc. If you want to take a stab at it, please try. But I fear that until the current logic is changed to treat each cell as its own object with all the properties embedded in it, inverting it may be too difficult.

from go-pretty.

jedib0t avatar jedib0t commented on May 18, 2024

Closing this as I haven't been able to make any progress on this, and I haven't seen anyone else request for this feature. Please feel free to reopen if you feel otherwise.

from go-pretty.

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.