Skip to content
Snippets Groups Projects
Commit c3a0413c authored by rhenck's avatar rhenck
Browse files

Improve label of text field element and use better dummy value

parent e6cc29d0
No related branches found
No related tags found
No related merge requests found
......@@ -16,12 +16,12 @@ import { TextFieldElement } from '../models/text-field-element';
[style.text-decoration]="elementModel.underline ? 'underline' : ''"
appInputBackgroundColor [backgroundColor]="elementModel.backgroundColor"
[appearance]="$any(elementModel.appearance)">
<mat-label>{{elementModel.label}}</mat-label>
<input matInput type="text" [pattern]="elementModel.pattern" #input
(focus)="onFocus.emit(input)"
(blur)="onBlur.emit(input)"
autocomplete="off"
[formControl]="elementFormControl"
placeholder="{{elementModel.label}}">
[formControl]="elementFormControl">
<button *ngIf="elementModel.clearable" matSuffix mat-icon-button aria-label="Clear"
(click)="onClick($event)">
<mat-icon>close</mat-icon>
......
......@@ -53,7 +53,7 @@ export abstract class InputElement extends UIElement {
protected constructor(serializedElement: UIElement, coordinates?: { x: number; y: number }) {
super(serializedElement, coordinates);
this.label = serializedElement.label as string || 'Dummylabel';
this.label = serializedElement.label as string || 'Beispielbeschriftung';
this.value = serializedElement.value as string | number | boolean | null || null;
this.required = serializedElement.required as boolean || false;
this.requiredWarnMessage = serializedElement.requiredWarnMessage as string || 'Eingabe erforderlich';
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment