aboutsummaryrefslogtreecommitdiffstats
path: root/src/angular/form-elements/input/input.component.html.ts
blob: f8a460929567fe40c9c3fff7a4ab550fe6f67a87 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
export default `
<div class="sdc-input ">
    <label class="sdc-input__label" *ngIf="label" [ngClass]="{'required':required}">{{label}}</label>
    <input
        class="sdc-input__input {{classNames}}"
        [ngClass]="{'error': !valid, 'disabled':disabled}"
        [attr.name]="name ? name : null"
        [placeholder]="placeHolder"
        [(ngModel)]="value"
        [maxlength]="maxLength"
        [minlength]="minLength"
        [type]="type"
        [formControl]="control"
        [attr.disabled]="disabled ? 'disabled' : null"
        (input)="onKeyPress($event.target.value)"
        [attr.data-tests-id]="testId"
    />
</div>
`;