Comments (4)
Nope, but you can simply do
<paper-datatable-column header="Info Object" type="Object" property="infoObject">
<template>
{{value.prop1}}
</template>
</paper-datatable-column>
the array example is a LOT harder though due to the way Polymer works (stuff like array.0
isn't allowed in bindings although it sort of worked in the past). You would have to set up a getItem
function on your <paper-datatable-column>
and then write
<paper-datatable-column header="Info Array" property="infoArray">
<template>
{{getItem(infoArray,0)}}
</template>
</paper-datatable-column>
and even that wouldn't allow two way binding (you would need to use <array-selector>
or a <dom-repeat>
for that).
from paper-datatable.
Agree with the array part. That's pretty irrelevant.
Object binding doesn't work with sorting, btw. The sort function will compare Object
instead of Object.prop1
. What do you think about this?
from paper-datatable.
@NamTThai Totally aware of that, so that's what the sort
attribute is for ;-) , check the 'sorting & type system' demo for that (the object
column): http://david-mulder.github.io/paper-datatable/components/paper-datatable/demo/sorting.html
from paper-datatable.
Awesome!
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.