[Library | Trunk]: Add warning on input
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@59810 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
38d900b960
commit
72cd3c9c43
|
@ -49,6 +49,7 @@ export interface Option {
|
||||||
</div>
|
</div>
|
||||||
</ng-template>
|
</ng-template>
|
||||||
<span *ngIf="formControl.errors && formControl.errors.error" class="uk-text-small uk-text-danger">{{formControl.errors.error}}</span>
|
<span *ngIf="formControl.errors && formControl.errors.error" class="uk-text-small uk-text-danger">{{formControl.errors.error}}</span>
|
||||||
|
<span *ngIf="warning" class="uk-text-small uk-text-warning">{{warning}}</span>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<mat-checkbox *ngIf="type === 'checkbox'" [formControl]="formControl">{{label}}</mat-checkbox>
|
<mat-checkbox *ngIf="type === 'checkbox'" [formControl]="formControl">{{label}}</mat-checkbox>
|
||||||
|
@ -68,6 +69,7 @@ export class InputComponent implements OnInit, OnDestroy, OnChanges {
|
||||||
@Input() hideControl: boolean = false;
|
@Input() hideControl: boolean = false;
|
||||||
@Input() icon: string = null;
|
@Input() icon: string = null;
|
||||||
@Input() iconLeft: boolean = false;
|
@Input() iconLeft: boolean = false;
|
||||||
|
@Input() warning: string = null;
|
||||||
public required: boolean = false;
|
public required: boolean = false;
|
||||||
private initValue: any;
|
private initValue: any;
|
||||||
private subscriptions: any[] = [];
|
private subscriptions: any[] = [];
|
||||||
|
|
Loading…
Reference in New Issue