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

CdkDrag with ng-content no drag directives and mat-table is pain #30035

Open
boendermaker opened this issue Nov 18, 2024 · 0 comments
Open

CdkDrag with ng-content no drag directives and mat-table is pain #30035

boendermaker opened this issue Nov 18, 2024 · 0 comments

Comments

@boendermaker
Copy link

I'm working on a reusable mat-table component with ng-content projection and with dragsortable rows and columns, column resize.

It seems that cdkDrag directives doesn't work with ng-content projection, so i tried to use only the dragdrop service from cdk which seems to work but with usage of detectChanges() and i have to re-add all draggables to their droplists on each dropevent for the columns.

When adding additional rows / data to the table on runtime, the newly added rows doesn't get recognized and can't be dragsorted.

Am i missing something? Seems there isn't that much example or even documentation for such a case (See my github kitchensink for code)

@pkozlowski-opensource pkozlowski-opensource transferred this issue from angular/angular Nov 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant