0.0.2 of ng-select support of placeholder

This commit is contained in:
David Lebee 2021-03-05 13:09:30 -05:00
parent 0a3247ab81
commit 419c3e2383
5 changed files with 6 additions and 2 deletions

View File

@ -1,6 +1,6 @@
{
"name": "@poweredsoft/ng-select",
"version": "0.0.1",
"version": "0.0.2",
"peerDependencies": {
"@angular/common": "^9.1.9",
"@angular/core": "^9.1.9"

View File

@ -6,6 +6,7 @@
[trackByFn]="trackFn"
[searchable]="true"
[multiple]="true"
[placeholder]="placeholder"
(change)="valueChanged($event)">
<ng-container *ngIf="hasOptionTemplate">
<ng-template ng-option-tmp let-item="item" let-index="index">

View File

@ -31,6 +31,7 @@ export class MultiSelectComponent implements OnInit,OnDestroy {
@Input() serverFiltering:boolean;
@Input() bindLabel:string;
@Input() bindValue: string;
@Input() placeholder: string;
@Output('change') changeEvent = new EventEmitter();

View File

@ -1,6 +1,7 @@
<ng-select [items]="data$ |async"
[bindLabel]="bindLabel"
[bindValue]="bindValue"
[bindValue]="bindValue"
[placeholder]="placeholder"
autofocus
[typeahead] = "searchInput$"
[trackByFn]="trackFn"

View File

@ -35,6 +35,7 @@ export class NgSelectComponent implements OnInit,OnDestroy {
@Input() serverFiltering:boolean;
@Input() bindLabel:string;
@Input() bindValue: string;
@Input() placeholder: string;
@Output('change') changeEvent = new EventEmitter();