angular-2-dropdown-multiselect
Advanced tools
Comparing version
{ | ||
"name": "angular-2-dropdown-multiselect", | ||
"version": "0.2.2", | ||
"version": "0.2.3", | ||
"description": "Customizable dropdown multiselect in Angular 2 with bootstrap css.", | ||
@@ -5,0 +5,0 @@ "main": "src/multiselect-dropdown.ts", |
@@ -22,7 +22,23 @@ # Angular 2 Dropdown Multiselect for Bootstrap CSS | ||
Import `MultiselectDropdownModule` into your @NgModule. | ||
Import `MultiselectDropdown` into your @NgModule. | ||
```js | ||
import { IMultiSelectOption } from 'multiselect-dropdown'; | ||
import {MultiselectDropdownModule} from "angular-2-dropdown-multiselect/src/multiselect-dropdown"; | ||
// ... | ||
@NgModule({ | ||
// ... | ||
imports: [ | ||
MultiselectDropdownModule, | ||
// ... | ||
] | ||
}) | ||
``` | ||
Define options in your consuming component: | ||
```js | ||
import {IMultiSelectOption} from "angular-2-dropdown-multiselect/src/multiselect-dropdown"; | ||
export class MyClass { | ||
@@ -29,0 +45,0 @@ private selectedOptions: number[]; |
@@ -107,3 +107,3 @@ /* | ||
@HostListener('document: click', ['$event.target']) | ||
onClick(target) { | ||
onClick(target:HTMLElement) { | ||
let parentFound = false; | ||
@@ -110,0 +110,0 @@ while (target !== null && !parentFound) { |
13785
2.24%98
19.51%