Socket
Book a DemoInstallSign in
Socket

ngx-mat-menu-infinite-scroll

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

ngx-mat-menu-infinite-scroll

Adds missing infinite scroll functionality for an [Angular Material Menu](https://material.angular.io/components/menu/overview).

1.0.1
unpublished
latest
Source
npmnpm
Version published
Maintainers
1
Created
Source

ngx-mat-menu-infinite-scroll

Adds missing infinite scroll functionality for an Angular Material Menu.

Installation

npm install ngx-mat-menu-infinite-scroll@latest

Since the directive is marked as standalone you can directly import it into a module.

import { NgModule } from '@angular/core';
import { MatMenuInfiniteScrollDirective } from 'ngx-mat-menu-infinite-scroll';

@NgModule({
	declarations: [...],
	imports: [
		MatMenuInfiniteScrollDirective
	],
	exports: [...]
})
export class AppModule { }

Usage

<button
   mat-button
   [matMenuTriggerFor]="menu"
   matMenuInfiniteScroll
   (scrolled)="loadMore()"
>Menu</button>
<mat-menu #menu="matMenu">
    @for(item of items; track $index) {
	   <!-- Menu items to show... -->
    }
</mat-menu>

Optional inputs/outputs

KeywordFunctionNote
thresholdThreshold for triggering the 'scrolled' eventDefault = 20, optional
debounceDebounce time to control the frequency of emitting 'scrolled' event (in milliseconds)Default = 500, optional
activeUntilInput property that stops scrolling when a specified condition evaluates to false.If the condition is false, scrolling stops., optional
(scrolled)Event emitted when the menu content is scrolled to the specified threshold

If you like my work, you can

"Buy Me A Coffee"

License

This project is licensed under the MIT License - see the LICENSE file for details.

Keywords

angular

FAQs

Package last updated on 16 Feb 2024

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.