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

Does not work with Angular Material Grid List #247

Open
vuras opened this issue Sep 23, 2021 · 0 comments
Open

Does not work with Angular Material Grid List #247

vuras opened this issue Sep 23, 2021 · 0 comments

Comments

@vuras
Copy link

vuras commented Sep 23, 2021

Hello everyone,

I am unsuccessfully trying to use the library together with Angular Material Grid List.

I am using Angular 12.2.6

I found out in documentation that I need to set sortableJSContainer but it throws an error for me:
ERROR Sortable:elmust be an HTMLElement, not [object Null]

This is a simple example that I am trying to run:

<mat-grid-list
  cols="6"
  rowHeight="150"
  [sortablejs]="tiles"
  sortablejsContainer=".mat-grid-list">
  <mat-grid-tile
    *ngFor="let tile of tiles"
    [colspan]="tile.cols"
    [rowspan]="tile.rows">
    <mat-card>
      <mat-card-title>{{ tile.card.title }}</mat-card-title>
      <mat-card-content>{{ tile.card.description }}</mat-card-content>
    </mat-card>
  </mat-grid-tile>
</mat-grid-list>

Am I doing something wrong?

Thank you.

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