David-Mulder / paper-datatable

A material design implementation of a data table.
GNU General Public License v3.0
237 stars 92 forks source link

5 months? #112

Open jay8t6 opened 8 years ago

jay8t6 commented 8 years ago

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.

amanuel2 commented 8 years ago

Agree with @jay8t6 . Also, if they could show us a demo, using this element with firebase (Notably a $firebaseArray())!

RoXuS commented 8 years ago

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.

amanuel2 commented 8 years ago

@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

RoXuS commented 8 years ago

@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.

amanuel2 commented 8 years ago

@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:

sebs commented 8 years ago

uh paper-datatable not usable with 1.6.0 polymer?

zvikarp commented 8 years ago

@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));

}
dhrytsenko commented 7 years ago

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.

sebs commented 7 years ago

<3