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

Improve inputAssistancePreset display value and variable name

parent 4fa9ad41
No related branches found
No related tags found
No related merge requests found
......@@ -14,7 +14,7 @@ export class TextAreaElement extends InputElement implements FontElement, Surfac
underline: boolean = false;
inputAssistance: boolean = false;
inputAssistancePreset: 'french' | 'numbers' | 'operators' | null = null;
inputAssistancePreset: 'french' | 'numbers' | 'numbersAndOperators' | null = null;
backgroundColor: string = 'transparent';
......
......@@ -12,7 +12,7 @@ export class TextFieldElement extends InputElement implements FontElement, Surfa
patternWarnMessage: string = 'Eingabe entspricht nicht der Vorgabe';
inputAssistance: boolean = false;
inputAssistancePreset: 'french' | 'numbers' | 'operators' | null = null;
inputAssistancePreset: 'french' | 'numbers' | 'numbersAndOperators' | null = null;
fontColor: string = 'black';
font: string = 'Roboto';
......
......@@ -214,9 +214,9 @@
<mat-form-field *ngIf="combinedProperties.inputAssistance" appearance="fill">
<mat-label>Art der Eingabehilfe</mat-label>
<mat-select (selectionChange)="updateModel('inputAssistancePreset', $event.value)">
<mat-option *ngFor="let option of [{displayValue: 'Französisch', value: 'french'},
<mat-option *ngFor="let option of [{displayValue: 'Französische Sonderzeichen', value: 'french'},
{displayValue: 'Zahlen', value: 'numbers'},
{displayValue: 'Operatoren', value: 'operators'}]"
{displayValue: 'Zahlen & Operatoren', value: 'numbersAndOperators'}]"
[value]="option.value">
{{option.displayValue}}
</mat-option>
......
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