angular-2-dropdown-multiselect
Advanced tools
Comparing version 0.2.2 to 0.2.3
{ | ||
"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) { |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13785
98