0.0.2 of ng-select support of placeholder
This commit is contained in:
parent
0a3247ab81
commit
419c3e2383
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@poweredsoft/ng-select",
|
"name": "@poweredsoft/ng-select",
|
||||||
"version": "0.0.1",
|
"version": "0.0.2",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"@angular/common": "^9.1.9",
|
"@angular/common": "^9.1.9",
|
||||||
"@angular/core": "^9.1.9"
|
"@angular/core": "^9.1.9"
|
||||||
|
@ -6,6 +6,7 @@
|
|||||||
[trackByFn]="trackFn"
|
[trackByFn]="trackFn"
|
||||||
[searchable]="true"
|
[searchable]="true"
|
||||||
[multiple]="true"
|
[multiple]="true"
|
||||||
|
[placeholder]="placeholder"
|
||||||
(change)="valueChanged($event)">
|
(change)="valueChanged($event)">
|
||||||
<ng-container *ngIf="hasOptionTemplate">
|
<ng-container *ngIf="hasOptionTemplate">
|
||||||
<ng-template ng-option-tmp let-item="item" let-index="index">
|
<ng-template ng-option-tmp let-item="item" let-index="index">
|
||||||
|
@ -31,6 +31,7 @@ export class MultiSelectComponent implements OnInit,OnDestroy {
|
|||||||
@Input() serverFiltering:boolean;
|
@Input() serverFiltering:boolean;
|
||||||
@Input() bindLabel:string;
|
@Input() bindLabel:string;
|
||||||
@Input() bindValue: string;
|
@Input() bindValue: string;
|
||||||
|
@Input() placeholder: string;
|
||||||
|
|
||||||
@Output('change') changeEvent = new EventEmitter();
|
@Output('change') changeEvent = new EventEmitter();
|
||||||
|
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
<ng-select [items]="data$ |async"
|
<ng-select [items]="data$ |async"
|
||||||
[bindLabel]="bindLabel"
|
[bindLabel]="bindLabel"
|
||||||
[bindValue]="bindValue"
|
[bindValue]="bindValue"
|
||||||
|
[placeholder]="placeholder"
|
||||||
autofocus
|
autofocus
|
||||||
[typeahead] = "searchInput$"
|
[typeahead] = "searchInput$"
|
||||||
[trackByFn]="trackFn"
|
[trackByFn]="trackFn"
|
||||||
|
@ -35,6 +35,7 @@ export class NgSelectComponent implements OnInit,OnDestroy {
|
|||||||
@Input() serverFiltering:boolean;
|
@Input() serverFiltering:boolean;
|
||||||
@Input() bindLabel:string;
|
@Input() bindLabel:string;
|
||||||
@Input() bindValue: string;
|
@Input() bindValue: string;
|
||||||
|
@Input() placeholder: string;
|
||||||
|
|
||||||
@Output('change') changeEvent = new EventEmitter();
|
@Output('change') changeEvent = new EventEmitter();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user