Git Product home page Git Product logo

Comments (5)

David-Mulder avatar David-Mulder commented on July 23, 2024

Sorry, I am not able to figure out what you're trying to do exactly based on what you're saying. Would you have an example of the kind of data structure you want to show?

from paper-datatable.

David-Mulder avatar David-Mulder commented on July 23, 2024

And for that matter, I will fix that issue surrounding <dom-repeat> and <paper-datatable-column>'s not playing nicely together, but that will have to wait till later as I am quite busy the next few days.

from paper-datatable.

sevenseat avatar sevenseat commented on July 23, 2024

David - appreciate you getting back to me so quickly. I'm trying to generate the following datatable:

Contestant Leg 1 Time Leg 1 Rank Leg 2 Time Leg 2 Rank
Me 45 1 30 2
You 50 2 20 1

From the following data structure

          var results = [
            {
              name: 'me',
              legs: [
                { time: 45, rank: 1},
                { time: 30, rank: 2}
              ]
            },
            {
              name: 'you',
              legs: [
                { time: 50, rank: 2},
                { time: 20, rank: 1}
              ]
            }

The number of legs varies, so that's why I'm using an array. I'm having a bit of trouble figuring out how to dynamically traverse that legs array to create a rank and time column for each.

Does that make more sense? I appreciate your perspective when you get a shot. Not a huge rush, this is a nights & weekends project for me.

from paper-datatable.

David-Mulder avatar David-Mulder commented on July 23, 2024

I see, that will indeed definitely require at least the dom-repeat support I mentioned above. Will take a look at it at the end of this week.

from paper-datatable.

David-Mulder avatar David-Mulder commented on July 23, 2024

Yep, dom-repeat should now work and on top of that I have a simple showcase on how to do it: http://david-mulder.github.io/paper-datatable/components/paper-datatable/demo/race.html

from paper-datatable.

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.