Comments (5)
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.
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.
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.
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.
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)
- Is there a easy way to add a datatable-card with pagination?? HOT 2
- Access index of Item in the displayed item list HOT 1
- Is this project no longer being maintained? HOT 1
- href not working HOT 1
- Modify CSS paper-tooltip in paper-datatable-column
- Is there a way to know the new value right after the cell was edited? HOT 1
- npm package? HOT 1
- Question : How to set autosize for `paper-datatable-column` ?
- Null items in the list object items makes all the other items not be previewied HOT 4
- How to add empty row and bind it back to VM?
- How to hide header? HOT 1
- Don't fix Polymer version HOT 1
- npm support ? HOT 3
- Allow adding rows HOT 2
- Issue while sorting columns HOT 4
- Modify cell style on a per cell basis
- Deselectall() is not working , after delete the row still the row is marked as 1item selected
- Rows per page filtering takes too much time
- Personal Contact
- paper-datatable-card not working in polymer 3 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from paper-datatable.