lacuna-mat-table
TypeScript icon, indicating that this package has built-in type declarations

4.1.0-beta.1 • Public • Published

LacunaMatTable

LacunaMatTable is a wrap around the original "mat-table" from Angular Material.

  • For Angular 5.X.X, use versions ^1.0.0;
  • For Angular 7.X.X, use versions ^2.0.0;
  • For Angular 9.X.X, use versions ^3.0.0;

LacunaMatTable includes a robust DataSource class, that can already handle pagination, sorting and filtering, and, furthermore, it supports either services or simple arrays as data source for the table itself.

In terms of pagination, the table can deal with items that already came paginated from the server, or it can also paginate items in memory (if the API sends all the items at once).

If you are using a service as data source for the table, you can expose a property which is an Observable called "changed" in this service, and the table will subscribe to this Observable. Hence, when this Observable from your service emits something, meaning that something changed, the table will retrieve the items again.

Readme

Keywords

none

Package Sidebar

Install

npm i lacuna-mat-table

Weekly Downloads

108

Version

4.1.0-beta.1

License

MIT

Unpacked Size

313 kB

Total Files

20

Last publish

Collaborators

  • lacuna-dev