Skip to content

page unresponsive when I have 1700 records #7

@aulona2014

Description

@aulona2014

Hi. I'm using this plugin. Works good, but when I have more data (1700 records) page crash, show page unresponsive.

I have Angular version "^8.2.14"

I have used this code:

         <div style="padding-top: 5%;">
          <sw-item-list *ngFor="let item of TrainingSessionPartecipants" [inside]="item"
            [item-class]="'list-custom'" [show-mark]="false" [disable-mark]="item?.disable"
            (swClick)="clickOnItem(item)" (swipeCb)="swipeCallback($event)" [editTemplate]="editTemplate"
            [trashTemplate]="null" [markTemplate]="defaultMark" [customTemplate]="customTemplatePresence"
            [notMarkTemplate]="defaultNotMark" (callback)="action($event,item)">
          </sw-item-list>
          <ng-template #editTemplate>
            <div class="addnote">
              <i class='fas fa-sticky-note fa-2x'></i>
            </div>
          </ng-template>
        </div>
        <ng-template #customTemplatePresence let-item='item' let-id='id'>
          <div style="display: flex;">
            <div style="width: 80%; padding-left: 10%;">
              <h3 style="margin-top: 0;margin-bottom: 0;">{{ item.Name}} {{item.Surname}}</h3>
              <small style="color:gray;font-weight:500;">{{ item.Position}}</small>
            </div>
          </div>
        </ng-template>

Please, can you share with me any idea how to fix this bug ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions