Gathering detailed insights and metrics for ng2-material-dropdown
Gathering detailed insights and metrics for ng2-material-dropdown
Gathering detailed insights and metrics for ng2-material-dropdown
Gathering detailed insights and metrics for ng2-material-dropdown
Angular 2 Material-like Dropdown Component
npm install ng2-material-dropdown
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
37 Stars
187 Commits
54 Forks
2 Watching
28 Branches
10 Contributors
Updated on 27 Aug 2023
Minified
Minified + Gzipped
TypeScript (75.82%)
HTML (11.82%)
SCSS (7.42%)
JavaScript (4.94%)
Cumulative downloads
Total Downloads
Last day
-3.7%
7,208
Compared to previous day
Last week
4.9%
36,862
Compared to previous week
Last month
11.4%
149,856
Compared to previous month
Last year
-4.3%
1,772,436
Compared to previous year
1
Material-like dropdown component for Angular2.
NB: This repository is currently unmaintained. Please fork or use Angular Material's module, it's better.
npm install ng2-material-dropdown --save
Once installed, import the directives and use it them your container component:
1<ng2-dropdown> 2 <ng2-dropdown-button> 3 Open Menu 4 </ng2-dropdown-button> 5 <ng2-dropdown-menu> 6 <ng2-menu-item *ngFor="let page of pages"> 7 {{ page }} 8 </ng2-menu-item> 9 10 <div class='ng2-menu-divider'></div> 11 12 <ng2-menu-item> 13 With Divider 14 </ng2-menu-item> 15 </ng2-dropdown-menu> 16</ng2-dropdown>
1// import module 2import { Ng2DropdownModule } from 'ng2-material-dropdown'; 3 4@NgModule({ 5 imports: [ Ng2DropdownModule ] 6 // .. 7}) 8export class MyModule {}
ng2-dropdown
dynamicUpdate
- [?boolean]
: option to disable the dynamic update of the position on scroll events (defaults to true
)onItemSelected()
- [(onItemSelected($event)]
: event that emits the currently selected/hovered itemonItemClicked()
- [(onItemClicked($event)]
: event that emits the item clicked ononShow()
- [(onItemClicked($event)]
: event that emits when the dropdown gets shownonHide()
- [(onItemClicked($event)]
: event that emits when the dropdown gets hiddenng2-dropdown-menu
focusFirstElement
- [?boolean]
: by default the first element is immediately focused. You can disable by setting this option to falsewidth
- [?number]
: this determines the width of the menu. Possible values are 2, 4 and 6. By default, this is set to 4offset
- [?string]
: offset to adjust the position of the dropdown with absolute valuesappendToBody
- [?boolean]
: by default the dropdown is appended to the body, but you can disable this by setting it to false
ng2-dropdown-button
showCaret
- [?boolean]
: if present, a caret will be appended to the button's textng2-menu-item
preventClose
- [?boolean]
: if present, this attribute prevents the menu to hide when the menu item is clickedvalue
- [?any]
: any value that you may want to attach to a menu item. Useful for using this component with other components.No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/15 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
100 existing vulnerabilities detected
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More