0.1.1 • Published 7 months ago

ngx-lazy-mat-select v0.1.1

Weekly downloads
-
License
-
Repository
-
Last release
7 months ago

NgxLazyMatSelect

Copy of ng-mat-select-infinite-scroll for Angular Material 16+

npm i ngx-lazy-mat-select

Usage

import { NgxLazyMatSelectModule } from 'ngx-lazy-mat-select';

Add NgxLazyMatSelectModule to NgModule imports alongside with MatFormFieldModule and MatSelectModule.

Use ngxLazyMatSelect directive.

<mat-form-field>
  <mat-label>Select</mat-label>
  <mat-select ngxLazyMatSelect (infiniteScroll)="getNextBatch()" [complete]="offset === data.length">
    <mat-option *ngFor="let option of options$ | async" [value]="option">{{option}}</mat-option>
  </mat-select>
</mat-form-field>