Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data-Table: Server-side paging and sorting #119

Closed
crain opened this issue Oct 26, 2016 · 5 comments
Closed

Data-Table: Server-side paging and sorting #119

crain opened this issue Oct 26, 2016 · 5 comments

Comments

@crain
Copy link

crain commented Oct 26, 2016

This repository's issues are reserved for feature requests and bug reports.

Feature Request

It should be possible to use server-side paging and sorting with the data table component.

What is the motivation / use case for changing the behavior?

Currently it is not possible to page and sort over large datasets as all data needs to be present in the client browser. I would have to load all records from my backend at once to the data table component.

Other information

Suggestion:
The developer could hook in his own backend calls and reload data from the backend based on page/sort events:

@output() sortChanged(already available)
@output() pagingChanged(missing)

@emoralesb05
Copy link
Contributor

emoralesb05 commented Oct 26, 2016

We are currently working on building smaller components like paging-bar, search-box, etc etc so you could either use the local data-table or build your own with server paging/sorting.

So basically we are gonna split the data-table into atomic components.

@crain
Copy link
Author

crain commented Oct 27, 2016

OK that sounds like a good seperation. Do you have a list what other things you are planning for the data table?

I am asking because there are some tiny features missing which could be useful such as:

  • event emitter on row selection
  • single row selection without checkboxes
  • rendering of buttons within the grid

Let me know if I should create seperate feature request for those.

@emoralesb05
Copy link
Contributor

Probably separate the <td-data-table> into a wrapper, headers and rows (still looking if its possible). So it gives the flexibility to implement anyway you want, while still providing a <td-local-data-table> that works like it works atm. (Or something like that)

We are trying to see what works best for this particular component.

@emoralesb05
Copy link
Contributor

Btw, we are working together with one contributer (gistia) atm to allow template rendering in the data-table. So you will be able to add icons, buttons or w/e you want.

@emoralesb05 emoralesb05 added this to the Alpha 0.9 milestone Oct 29, 2016
@emoralesb05
Copy link
Contributor

Closing since it was addressed in #128.
We broke apart the data-table to allow this and much more. Feel free to reopen or open a new issue for specific data table features 😄

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants