Socket
Socket
Sign inDemoInstall

angular-2-dropdown-multiselect

Package Overview
Dependencies
0
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.2.0 to 0.2.2

2

package.json
{
"name": "angular-2-dropdown-multiselect",
"version": "0.2.0",
"version": "0.2.2",
"description": "Customizable dropdown multiselect in Angular 2 with bootstrap css.",

@@ -5,0 +5,0 @@ "main": "src/multiselect-dropdown.ts",

@@ -11,4 +11,11 @@ # Angular 2 Dropdown Multiselect for Bootstrap CSS

* Bootstrap CSS 3
* Font Awesome
* Font Awesome *(only with search box and checkbox mode)*
## Quick start options
* [Download the latest release](https://github.com/softsimon/angular-2-dropdown-multiselect/archive/v0.2.0.zip).
* Clone the repo: `git clone https://github.com/softsimon/angular-2-dropdown-multiselect.git`.
* Install with [Bower](http://bower.io): `bower install angular-2-dropdown-multiselect --save`.
* Install with [npm](https://www.npmjs.com): `npm install angular-2-dropdown-multiselect --save-dev`.
## Usage

@@ -22,2 +29,3 @@

export class MyClass {
private selectedOptions: number[];
private myOptions: IMultiSelectOption[] = [

@@ -40,3 +48,3 @@ { id: 1, name: 'Option 1' },

```js
private defaultSelected: Array<number> = [1, 2];
private selectedOptions: number[] = [1, 2]; // Default selection

@@ -43,0 +51,0 @@ private mySettings: IMultiSelectSettings = {

@@ -159,2 +159,3 @@ /*

this.texts = Object.assign(this.defaultTexts, this.texts);
this.title = this.texts.defaultTitle;
}

@@ -197,2 +198,3 @@

setSelected(event: Event, option: IMultiSelectOption) {
if (!this.model) this.model = [];
var index = this.model.indexOf(option.id);

@@ -248,2 +250,2 @@ if (index > -1) {

})
export class MultiselectDropdownModule { }
export class MultiselectDropdownModule { }
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc