bluewatertracks / bwt-datatable

Data table with Polymer 3 support!
GNU General Public License v3.0
42 stars 14 forks source link

You really need better examples for datasource #10

Closed Stefdv closed 6 years ago

Stefdv commented 7 years ago

I think you should provide examples on how to use datasource inside a custom element. Right now the only examples are using template is=bind , i'm having a hard time finding out how to setup a datasource inside a custom app. Also it is not clear when certain functions are called (queryForIds,getByIds,get,set)

maisnamraju commented 7 years ago

We are working on improving the documentation so will have a look at this. as well as the bug

Stefdv commented 7 years ago

👍

samiheikki commented 7 years ago

+1. Was trying to implement something similar to this: https://cdn.vaadin.com/vaadin-grid/2.0.0-alpha4/demo/data.html#assigning-remote-function-data Any pointers where to start?

dhrytsenko commented 7 years ago

Hi @samiheikki! If you want to use simple datatable you can check this example simple datatable

samiheikki commented 7 years ago

Actually found this https://github.com/bluewatertracks/bwt-datatable/blob/master/demo/paper-datatable-card/index.html#L69 and that helped me a lot. Thanks!

dhrytsenko commented 7 years ago

@samiheikki You're welcome!