(no branch):
RED-6370 - added disabled property to dynamic input component
This commit is contained in:
parent
9eecf327c2
commit
4c9db877cd
@ -9,6 +9,7 @@
|
||||
[matDatepicker]="picker"
|
||||
[name]="name"
|
||||
[placeholder]="placeholder || 'dd/mm/yy'"
|
||||
[disabled]="!canEditInput"
|
||||
stopPropagation
|
||||
/>
|
||||
<mat-datepicker-toggle [for]="picker" matSuffix>
|
||||
@ -24,9 +25,10 @@
|
||||
[id]="id"
|
||||
[name]="name"
|
||||
[placeholder]="placeholder || ''"
|
||||
[disabled]="!canEditInput"
|
||||
stopPropagation
|
||||
type="text"
|
||||
/>
|
||||
|
||||
<input (ngModelChange)="onChange($event)" *ngIf="isNumber" [(ngModel)]="input" [id]="id" [name]="name" stopPropagation type="number" />
|
||||
<input (ngModelChange)="onChange($event)" *ngIf="isNumber" [(ngModel)]="input" [id]="id" [name]="name" stopPropagation type="number" [disabled]="!canEditInput"/>
|
||||
</div>
|
||||
|
||||
@ -46,6 +46,7 @@ export class DynamicInputComponent extends FormFieldComponent<DynamicInput> {
|
||||
@Input() name?: string;
|
||||
@Input() classList?: string = '';
|
||||
@Input() input!: DynamicInput;
|
||||
@Input() canEditInput = true;
|
||||
@Output() readonly closedDatepicker = new EventEmitter<boolean>();
|
||||
|
||||
get isDate() {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user