diprokon / ng-table-virtual-scroll

Virtual Scroll for Angular Material Table
https://diprokon.github.io/ng-table-virtual-scroll
MIT License
134 stars 42 forks source link

Add support also to CDK table #79

Closed asaf11108 closed 1 year ago

asaf11108 commented 2 years ago

Currently the library support only Mat table. Please add support to CDK table.

Note:

  1. ContentChild of mat table in table-item-size.directive.ts, link.
  2. css selectors in table-item-size.directive.ts, link.
tamascsaba commented 2 years ago

@diprokon it would be really great to support cdk-table as well. Maybe a usefull link for them: https://github.com/rosostolato/ng-table-virtual-scroll

anschm commented 2 years ago

Its seems that all material specific usages could be replaced with the cdk classes. For example MatTable extends CdkTable and MatDataSource extends DataSource from Cdk, so it looks like we can switch to the cdk definitions and it should work for material table and cdk because material table use cdk under the hood.

diprokon commented 2 years ago

Hi! I'm preparing the solution for this issue. Probably will be in the next release

anschm commented 2 years ago

Hey diprokon! Thanks, that sounds good! Do you have a idea when that will be available?

tamascsaba commented 2 years ago

@diprokon thank you man 👍