All Projects → HaidarZ → ng-mat-select-infinite-scroll

HaidarZ / ng-mat-select-infinite-scroll

Licence: MIT license
Infinite Scroll directive for angular material select component

Programming Languages

typescript
32286 projects
javascript
184084 projects - #8 most used programming language
HTML
75241 projects
CSS
56736 projects

Projects that are alternatives of or similar to ng-mat-select-infinite-scroll

Infinite Ajax Scroll
Turn your existing pagination into infinite scrolling pages with ease
Stars: ✭ 804 (+1961.54%)
Mutual labels:  infinite-scroll, scroll, infinite
Infinitescroll
Infinite Scroll (Endless Scrolling) for RecyclerView in Android
Stars: ✭ 183 (+369.23%)
Mutual labels:  infinite-scroll, scroll, infinite
Svelte Infinite Scroll
Infinite Scroll Component to Svelte
Stars: ✭ 102 (+161.54%)
Mutual labels:  infinite-scroll, scroll, infinite
react-infinite-scroll-list
Manage infinite list with the IntersectionObserver API
Stars: ✭ 20 (-48.72%)
Mutual labels:  infinite-scroll, scroll, infinite
vuejs-loadmore
A pull-down refresh and pull-up loadmore scroll component for Vue.js. Vue上拉加载下拉刷新组件
Stars: ✭ 62 (+58.97%)
Mutual labels:  infinite-scroll, scroll, infinite
Endless
🛣 A lightweight endless pageControl based on CAShapeLayers and UICollectionView
Stars: ✭ 19 (-51.28%)
Mutual labels:  infinite-scroll, infinite
React Infinite Calendar
✨ Infinite scrolling date-picker built with React, with localization, range selection, themes, keyboard support, and more.
Stars: ✭ 3,828 (+9715.38%)
Mutual labels:  infinite-scroll, infinite
Vue Mugen Scroll
Infinite scroll component for Vue.js 2
Stars: ✭ 532 (+1264.1%)
Mutual labels:  infinite-scroll, scroll
Loopingviewpager
A ViewPager and PagerAdapter combination that support auto scroll, infinite loop and page indicators.
Stars: ✭ 310 (+694.87%)
Mutual labels:  infinite-scroll, infinite
Ngx Infinite Scroll
Infinite Scroll Directive for Angular
Stars: ✭ 1,024 (+2525.64%)
Mutual labels:  infinite-scroll, scroll
Vue List Scroller
Simple and easy to use Vue.js component for efficient rendering large lists
Stars: ✭ 65 (+66.67%)
Mutual labels:  infinite-scroll, scroll
Rsdayflow
iOS 7+ Calendar (Date Picker) with Infinite Scrolling.
Stars: ✭ 843 (+2061.54%)
Mutual labels:  infinite-scroll, scroll
Ngx Ui Scroll
Infinite/virtual scroll for Angular
Stars: ✭ 145 (+271.79%)
Mutual labels:  infinite-scroll, scroll
Pd Select
vue components ,like ios 3D picker style,vue 3d 选择器组件,3D滚轮
Stars: ✭ 101 (+158.97%)
Mutual labels:  select, scroll
scrollbox
A lightweight jQuery custom scrollbar plugin, that triggers event when reached the defined point.
Stars: ✭ 15 (-61.54%)
Mutual labels:  infinite-scroll, scroll
angular2-infinite-scroll
Infinite Scroll Directive For Angular (version 2 up to 2.3.1)
Stars: ✭ 16 (-58.97%)
Mutual labels:  infinite-scroll, scroll
boomerang
Easy website for your GDG Chapter
Stars: ✭ 74 (+89.74%)
Mutual labels:  angular-material
magic-scroll
Apple Magic Mouse scrolling effect for normal mouses
Stars: ✭ 43 (+10.26%)
Mutual labels:  scroll
awesome-angular
💖 A list of awesome Angular (2️⃣➕) resources
Stars: ✭ 61 (+56.41%)
Mutual labels:  angular-material
use-gesture
👇Bread n butter utility for component-tied mouse/touch gestures in React and Vanilla Javascript.
Stars: ✭ 6,624 (+16884.62%)
Mutual labels:  scroll

Angular Material Select Infinite Scroll

Adds missing infinite scroll functionality for the angular material select component

Inputs

Property Description Type Default
complete If true, the infiniteScroll output will no longer be triggered boolean false
threshold The threshold distance from the bottom of the options list to call the infiniteScroll output event when scrolled. The threshold value can be either in percent, or in pixels. For example, use the value of 10% for the infiniteScroll output event to get called when the user has needs 10% to reach the bottom. string '15%'
debounceTime The threshold time before firing the infiniteScroll event number 150

Outputs

Property Description Type
infiniteScroll Emitted when the scroller inside the mat-select reaches the required distance EventEmitter<void>

Installation

npm i ng-mat-select-infinite-scroll

Usage

StackBlitz working example

Import MatSelectInfiniteScrollModule inside the app.module.ts

import { MatFormFieldModule, MatSelectModule } from '@angular/material/select';
import {MatSelectInfiniteScrollModule} from 'ng-mat-select-infinite-scroll';

@NgModule({
  declarations: [
    AppComponent
  ],
  imports: [
    BrowserModule,
    BrowserAnimationsModule,
    MatFormFieldModule,
    MatSelectModule,
    MatSelectInfiniteScrollModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {
}

Then place the msInfiniteScroll directive on the mat-select component

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

Compatibility

  • @angular/core: >=6.0.0 <14,
  • @angular/cdk: >=6.0.0 <14,
  • @angular/material: >=6.0.0 <14,
  • rxjs: ^6.0.0

Contributions

Contributions are welcomed, feel free to open a Pull-Request or open a new issue.

Development server

Run ng serve for a dev server. Navigate to http://localhost:4200/. The app will automatically reload if you change any of the source files.

Build

Run ng build to build the project. The build artifacts will be stored in the dist/ directory. Use the --prod flag for a production build.

Running unit tests

Run ng test to execute the unit tests via Karma.

License

MIT

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].