paper-datatable
paper-datatable copied to clipboard
5 months?
Hello there,
First of all, great work on the datatable. Its been 5 months since your last commit. I was wondering if you have you stopped supporting this element. It would be great if you could keep supporting this. I am pretty sure the others feel the same.
Agree with @jay8t6 . Also, if they could show us a demo, using this element with firebase (Notably a $firebaseArray())!
hello @jay8t6, I had a discussion with the author a few months ago on slack, he had promised to take a look at PR but obviously this is not the case.
We created our own component from scratch to cover the same needs, it still lacks some stuff but it's functional.
See https://github.com/RoXuS/paper-datatable-api and the demo page https://roxus.github.io/paper-datatable-api/components/paper-datatable-api/.
It would be a pleasure to have your feedback.
@RoXuS it would be the best thing in the world, if you could show us how to integrate Firebase with that table API You got. like a $firebaseArray
@amanuel2 I did a fast example with firebase.
You can see the demo here: https://roxus.github.io/paper-datatable-api/components/paper-datatable-api/ And the code: https://github.com/RoXuS/paper-datatable-api/blob/master/demo/firebase-demo.html
If you want use the pagination you have to use the firebase-query element with startAt
and endAt
attributes.
@RoXuS i wanted to note that, many people still use(including me) Firebase 2.4.2 , because there has been too many unnececary changes to the Firebase 3.0 SDK. So if you can include a older version, that would be even great! :smile:
uh paper-datatable not usable with 1.6.0 polymer?
@amanuel2 Here is a code to add firebase list to David Mulder's datatable:
Just add it to your js
ready: function() {
this.data = []
var userId = firebase.auth().currentUser.uid;
firebase.database().ref('/user/' + userId + '/data').on('child_added', function(snapshot){
var item = snapshot.val();
item.name = snapshot.val().name;
item.time = snapshot.val().time;
his.push('data', item);
}.bind(this));
}
Hi @sebs! If you want to use paper-datatable with some new features you must to check our element from repo. Please, read desription to learn more about it. It's work very good with latest polymer 1.8.0.
<3