
Security News
Django Joins curl in Pushing Back on AI Slop Security Reports
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
angular-2-dropdown-multiselect
Advanced tools
Customizable dropdown multiselect in Angular 2 with bootstrap css.
Updated to work with RC6 !
Customizable dropdown multiselect in Angular 2, TypeScript with bootstrap css.
See demo: http://softsimon.github.io/angular-2-dropdown-multiselect
git clone https://github.com/softsimon/angular-2-dropdown-multiselect.git
.bower install angular-2-dropdown-multiselect --save
.npm install angular-2-dropdown-multiselect --save-dev
.Import MultiselectDropdownModule
into your @NgModule.
import { IMultiSelectOption } from 'multiselect-dropdown';
export class MyClass {
private selectedOptions: number[];
private myOptions: IMultiSelectOption[] = [
{ id: 1, name: 'Option 1' },
{ id: 2, name: 'Option 2' },
];
}
In your template, use the component directive:
<ss-multiselect-dropdown [options]="myOptions" [(ngModel)]="selectedOptions" (ngModelChange)="onChange($event)"></ss-multiselect-dropdown>
Import the IMultiSelectSettings and IMultiSelectTexts interfaces to enable/override settings and text strings:
private selectedOptions: number[] = [1, 2]; // Default selection
private mySettings: IMultiSelectSettings = {
pullRight: false,
enableSearch: false,
checkedStyle: 'checkboxes',
buttonClasses: 'btn btn-default',
selectionLimit: 0,
closeOnSelect: false,
showCheckAll: false,
showUncheckAll: false,
dynamicTitleMaxItems: 3,
maxHeight: '300px',
};
private myTexts: IMultiSelectTexts = {
checkAll: 'Check all',
uncheckAll: 'Uncheck all',
checked: 'checked',
checkedPlural: 'checked',
searchPlaceholder: 'Search...',
defaultTitle: 'Select',
};
<ss-multiselect-dropdown [options]="mySettings" [texts]="myTexts" [settings]="mySettings" [(ngModel)]="selectedOptions"></ss-multiselect-dropdown>
Pull requests are welcome!
[MIT]
FAQs
Customizable dropdown multiselect in Angular 2 with bootstrap css.
The npm package angular-2-dropdown-multiselect receives a total of 1,563 weekly downloads. As such, angular-2-dropdown-multiselect popularity was classified as popular.
We found that angular-2-dropdown-multiselect demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
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.
Security News
Django has updated its security policies to reject AI-generated vulnerability reports that include fabricated or unverifiable content.
Security News
ECMAScript 2025 introduces Iterator Helpers, Set methods, JSON modules, and more in its latest spec update approved by Ecma in June 2025.
Security News
A new Node.js homepage button linking to paid support for EOL versions has sparked a heated discussion among contributors and the wider community.