angular-2-dropdown-multiselect
Advanced tools
Comparing version 0.2.3 to 0.3.0
{ | ||
"name": "angular-2-dropdown-multiselect", | ||
"version": "0.2.3", | ||
"version": "0.3.0", | ||
"description": "Customizable dropdown multiselect in Angular 2 with bootstrap css.", | ||
@@ -5,0 +5,0 @@ "main": "src/multiselect-dropdown.ts", |
# Angular 2 Dropdown Multiselect for Bootstrap CSS | ||
Updated to work with RC6 ! | ||
Works with Angular Final and AOT compilation | ||
@@ -25,3 +25,3 @@ Customizable dropdown multiselect in Angular 2, TypeScript with bootstrap css. | ||
```js | ||
import {MultiselectDropdownModule} from "angular-2-dropdown-multiselect/src/multiselect-dropdown"; | ||
import {MultiselectDropdownModule} from 'angular-2-dropdown-multiselect/src/multiselect-dropdown'; | ||
@@ -42,3 +42,3 @@ // ... | ||
```js | ||
import {IMultiSelectOption} from "angular-2-dropdown-multiselect/src/multiselect-dropdown"; | ||
import {IMultiSelectOption} from 'angular-2-dropdown-multiselect/src/multiselect-dropdown'; | ||
@@ -45,0 +45,0 @@ export class MyClass { |
/* | ||
* Angular 2 Dropdown Multiselect for Bootstrap | ||
* Current version: 0.2.0 | ||
* Current version: 0.3.0 | ||
* | ||
@@ -50,3 +50,3 @@ * Simon Lindh | ||
}) | ||
class MultiSelectSearchFilter { | ||
export class MultiSelectSearchFilter { | ||
transform(options: Array<IMultiSelectOption>, args: string): Array<IMultiSelectOption> { | ||
@@ -121,11 +121,11 @@ return options.filter((option: IMultiSelectOption) => option.name.toLowerCase().indexOf((args || '').toLowerCase()) > -1); | ||
protected onModelChange: Function = (_: any) => {}; | ||
protected onModelTouched: Function = () => {}; | ||
protected model: number[]; | ||
protected title: string; | ||
protected differ: any; | ||
protected numSelected: number = 0; | ||
protected isVisible: boolean = false; | ||
protected searchFilterText: string = ''; | ||
protected defaultSettings: IMultiSelectSettings = { | ||
onModelChange: Function = (_: any) => {}; | ||
onModelTouched: Function = () => {}; | ||
model: number[]; | ||
title: string; | ||
differ: any; | ||
numSelected: number = 0; | ||
isVisible: boolean = false; | ||
searchFilterText: string = ''; | ||
defaultSettings: IMultiSelectSettings = { | ||
pullRight: false, | ||
@@ -142,3 +142,3 @@ enableSearch: false, | ||
}; | ||
protected defaultTexts: IMultiSelectTexts = { | ||
defaultTexts: IMultiSelectTexts = { | ||
checkAll: 'Check all', | ||
@@ -153,4 +153,4 @@ uncheckAll: 'Uncheck all', | ||
constructor( | ||
protected element: ElementRef, | ||
protected differs: IterableDiffers | ||
private element: ElementRef, | ||
private differs: IterableDiffers | ||
) { | ||
@@ -157,0 +157,0 @@ this.differ = differs.find([]).create(null); |
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
13706