This commit is contained in:
Valentin Mihai 2023-01-25 22:07:59 +02:00
parent eb84e5f348
commit 35386f60e0
3 changed files with 5 additions and 13 deletions

View File

@ -1,6 +1,7 @@
@use 'common-mixins' as mixins;
form .iqser-input-group:not(first-of-type), iqser-dynamic-input:not(first-of-type) {
form .iqser-input-group:not(first-of-type),
iqser-dynamic-input:not(first-of-type) {
margin-top: 14px;
}

View File

@ -1,7 +1,6 @@
<!--<div class="iqser-input-group" [ngClass]="classList" [class.datepicker-wrapper]="isDate">-->
<div class="iqser-input-group" [ngClass]="classList" [class.datepicker-wrapper]="isDate">
<label> {{label}} </label>
<label> {{ label }} </label>
<ng-container *ngIf="isDate">
<input
@ -28,12 +27,5 @@
type="text"
/>
<input
*ngIf="isNumber"
[(ngModel)]="input"
(ngModelChange)="onChange($event)"
[id]="id"
[name]="name"
type="number"
/>
<input *ngIf="isNumber" [(ngModel)]="input" (ngModelChange)="onChange($event)" [id]="id" [name]="name" type="number" />
</div>

View File

@ -29,10 +29,9 @@ type DynamicInput = number | string | Date;
multi: true,
useExisting: DynamicInputComponent,
},
]
],
})
export class DynamicInputComponent extends FormFieldComponent<DynamicInput> {
@Input() label!: string;
@Input() type!: InputType;