Gathering detailed insights and metrics for ng-multiselect-dropdown
Gathering detailed insights and metrics for ng-multiselect-dropdown
Gathering detailed insights and metrics for ng-multiselect-dropdown
Gathering detailed insights and metrics for ng-multiselect-dropdown
@ng-select/ng-select
Angular ng-select - All in One UI Select, Multiselect and Autocomplete
@syncfusion/ej2-angular-dropdowns
Essential JS 2 DropDown Components for Angular
search-multiselect-dropdown
A Angular(8+) Search And Multiselection Dropdown.
ng-multiselect-dropdown-infinite-scroll
Angular Multi-Select Dropdown with Scroll Bottom Detection
npm install ng-multiselect-dropdown
Typescript
Module System
Node Version
NPM Version
99
Supply Chain
100
Quality
76.2
Maintenance
100
Vulnerability
100
License
TypeScript (70.83%)
SCSS (15.98%)
HTML (10.75%)
JavaScript (2.43%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
330 Stars
120 Commits
290 Forks
15 Watchers
20 Branches
20 Contributors
Updated on Jun 18, 2025
Minified
Minified + Gzipped
Latest Version
1.0.0
Package Id
ng-multiselect-dropdown@1.0.0
Unpacked Size
166.68 kB
Size
38.48 kB
File Count
19
NPM Version
8.19.4
Node Version
16.20.1
Published on
Jul 28, 2023
Cumulative downloads
Total Downloads
1
Angular multiselect dropdown component for web applications. Easy to integrate and use. It can be bind to any custom data source.
npm install ng-multiselect-dropdown
And then include it in your module (see app.module.ts):
1import { NgMultiSelectDropDownModule } from 'ng-multiselect-dropdown'; 2// ... 3 4@NgModule({ 5 imports: [ 6 NgMultiSelectDropDownModule.forRoot() 7 // ... 8 ] 9 // ... 10}) 11export class AppModule {}
1import { Component, OnInit } from '@angular/core'; 2import { IDropdownSettings } from 'ng-multiselect-dropdown'; 3 4export class AppComponent implements OnInit { 5 dropdownList = []; 6 selectedItems = []; 7 dropdownSettings = {}; 8 ngOnInit() { 9 this.dropdownList = [ 10 { item_id: 1, item_text: 'Mumbai' }, 11 { item_id: 2, item_text: 'Bangaluru' }, 12 { item_id: 3, item_text: 'Pune' }, 13 { item_id: 4, item_text: 'Navsari' }, 14 { item_id: 5, item_text: 'New Delhi' } 15 ]; 16 this.selectedItems = [ 17 { item_id: 3, item_text: 'Pune' }, 18 { item_id: 4, item_text: 'Navsari' } 19 ]; 20 this.dropdownSettings:IDropdownSettings = { 21 singleSelection: false, 22 idField: 'item_id', 23 textField: 'item_text', 24 selectAllText: 'Select All', 25 unSelectAllText: 'UnSelect All', 26 itemsShowLimit: 3, 27 allowSearchFilter: true 28 }; 29 } 30 onItemSelect(item: any) { 31 console.log(item); 32 } 33 onSelectAll(items: any) { 34 console.log(items); 35 } 36}
1<ng-multiselect-dropdown 2 [placeholder]="'custom placeholder'" 3 [settings]="dropdownSettings" 4 [data]="dropdownList" 5 [(ngModel)]="selectedItems" 6 (onSelect)="onItemSelect($event)" 7 (onSelectAll)="onSelectAll($event)" 8> 9</ng-multiselect-dropdown>
Setting | Type | Description | Default Value |
---|---|---|---|
singleSelection | Boolean | Mode of this component. If set true user can select more than one option. | false |
placeholder | String | Text to be show in the dropdown, when no items are selected. | 'Select' |
disabled | Boolean | Disable the dropdown | false |
data | Array | Array of items from which to select. Should be an array of objects with id and text properties. You can also use custom properties. In that case you need to map idField and textField properties. As convenience, you may also pass an array of strings, in which case the same string is used for both the ID and the text(no mapping is required) | n/a |
idField | String | map id field in case of custom array of object | 'id' |
textField | String | map text field in case of custom array of object | 'text' |
enableCheckAll | Boolean | Enable the option to select all items in list | false |
selectAllText | String | Text to display as the label of select all option | Select All |
unSelectAllText | String | Text to display as the label of unSelect option | UnSelect All |
allowSearchFilter | Boolean | Enable filter option for the list. | false |
searchPlaceholderText | String | custom search placeholder | Search |
clearSearchFilter | Boolean | clear search filter on dropdown close | true |
maxHeight | Number | Set maximum height of the dropdown list in px. | 197 |
itemsShowLimit | Number | Limit the number of items to show in the input field. If not set will show all selected. | All |
limitSelection | Number | Limit the selection of number of items from the dropdown list. Once the limit is reached, all unselected items gets disabled. | none |
searchPlaceholderText | String | Custom text for the search placeholder text. Default value would be 'Search' | 'Search' |
noDataAvailablePlaceholderText | String | Custom text when no data is available. | 'No data available' |
closeDropDownOnSelection | Boolean | Closes the dropdown when item is selected. applicable only in cas of single selection | false |
defaultOpen | Boolean | open state of dropdown | false |
allowRemoteDataSearch | Boolean | allow search remote api if no data is present. | false |
onSelect
- Return the selected item when an item is checked.
Example : (onSelect)="onItemSelect($event)"onSelectAll
- Return the all items.
Example : (onSelectAll)="onSelectAll($event)".onDeSelect
- Return the unselected item when an item is unchecked.
Example : (onDeSelect)="onItemDeSelect($event)"onFilterChange
- Return the key press.
Example : (onFilterChange)="onFilterChange($event)"onDropDownClose
-
Example : (onDropDownClose)="onDropDownClose()"ng-multiselet-dropdown\themes\ng-multiselect-dropdown.theme.scss
ng-multiselet-dropdown.theme.css
in angular-cli.json
(for versions below angular 6) and angular.json
(for version 6 or more).Template for each item
<ng-template #optionsTemplate let-item let-option="option" let-id="id" let-isSelected="isSelected">
{{option}}
</ng-template>
Template for selected item
<ng-template #optionSelectedTemplate optionSelectedTemplate let-option="option" let-id="id">
{{option}}
</ng-template>
npm install
ng serve
for a dev serverhttp://localhost:4200/
Run yarn build:lib
to build the library and generate an NPM package. The build artifacts will be stored in the dist-lib/ folder.
Run yarn test
to execute the unit tests.
This project was generated with Angular CLI version 1.7.1.
Contributions are welcome, please open an issue and preferrably file a pull request.
Please share sample code using codesandbox.com or stackblitz.com to help me re-produce the issue.
MIT License.
Thanks goes to these wonderful people (emoji key):
Tom Saleeba 💻 | Simon Pinfold 💻 | Sushil Suthar 💻 | Sachin Grover 💻 | Mike Roberts 💻 | David Sosa 💻 | Sergiy Gedeon 💻 |
This project follows the all-contributors specification. Contributions of any kind welcome!
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
0 existing vulnerabilities detected
Reason
Found 6/30 approved changesets -- score normalized to 2
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
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
Score
Last Scanned on 2025-06-30
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 MoreLast Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year