mirror of
https://github.com/Alfresco/alfresco-ng2-components.git
synced 2025-07-24 17:32:15 +00:00
13 lines
602 B
HTML
13 lines
602 B
HTML
<div class="mdl-textfield mdl-js-textfield mdl-textfield--floating-label text-widget"
|
|
[class.text-widget__invalid]="!field.isValid">
|
|
<input class="mdl-textfield__input"
|
|
type="text"
|
|
[attr.id]="field.id"
|
|
[attr.required]="isRequired()"
|
|
[(ngModel)]="field.value"
|
|
(ngModelChange)="checkVisibility(field)"
|
|
[disabled]="field.readOnly">
|
|
<label class="mdl-textfield__label" [attr.for]="field.id">{{field.name}}</label>
|
|
<span *ngIf="field.validationSummary" class="mdl-textfield__error">{{field.validationSummary}}</span>
|
|
</div>
|