🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
DemoInstallSign in
Socket

ngx-mat-menu-hover

Package Overview
Dependencies
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ngx-mat-menu-hover

This Angular directive provides functionality to handle hover menu behavior, allowing menus to open when hovered over and close when the mouse leaves.

1.0.3
latest
Source
npm
Version published
Weekly downloads
0
Maintainers
1
Weekly downloads
 
Created
Source

mat-menu-hover - An Angular Material directive

This Angular directive provides functionality to handle hover menu behavior, allowing menus to open when hovered over and close when the mouse leaves.

npm version

Installation

npm install mat-menu-hover@latest

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

import { NgModule } from  '@angular/core';
import { HoverMenuDirective } from  'mat-menu-hover';

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

Usage

<button mat-button [matMenuTriggerFor]="menu" matHoverMenu>Menu</button>
<mat-menu #menu="matMenu">
	<!-- Menu content goes here -->
</mat-menu>

Optional inputs/outputs

KeywordFunctionNote
[closeDelay]Adds a delay before the menu closedDefault = 50ms
(opened)Emits if the menu is opened/closed

Known issues

  • Currently it is not possible to nest menus. It will only work with single-level mat-menus.

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