lacuna-mat-table
v5.0.0
Published
LacunaMatTable is a wrap around the original "mat-table" from Angular Material.
Downloads
591
Readme
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.