Skip to content

Does not work with Angular Material Grid List #247

Description

@vuras

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions