shlomiassaf / ngrid

A angular grid for the enterprise
https://shlomiassaf.github.io/ngrid
MIT License
241 stars 40 forks source link

Both Material and Bootstrap paginators don't work with new version of NGrid #157

Closed tamtakoe closed 3 years ago

tamtakoe commented 3 years ago

What is the current behavior?

Nothing

What are the steps to reproduce?

https://codesandbox.io/s/paginator-bug-jvsxn

shlomiassaf commented 3 years ago

@tamtakoe You forgot to add the usePagination attribute, which is actually a plugin.

Without it, the whole pagination code is "tree shaked" because it's not being used and this is why plugin via directives was chosen for pagination and other ngrid fetures.

I've also added the UX presentation of the pagination which can also be set from the outside in a global registry component.

Here is the working version: https://codesandbox.io/s/paginator-bug-forked-3f1d2?file=/src/app/app.component.html:333-346