Skip to content

Commit 02ef946

Browse files
committed
possibility for initial text
1 parent 02d1078 commit 02ef946

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

projects/angular-keyboard/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@taskbase/angular-keyboard",
3-
"version": "0.0.1",
3+
"version": "0.0.2",
44
"peerDependencies": {
55
"@angular/common": "^8.1.3",
66
"@angular/core": "^8.1.3"

projects/angular-keyboard/src/lib/fake-input/fake-input.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ interface Cursor {
3939
export class FakeInputComponent implements OnInit, OnDestroy {
4040

4141
@Input() suggestionMode = false;
42+
@Input () initialText = '';
4243

4344
@Output() text = new EventEmitter();
4445

@@ -85,7 +86,7 @@ export class FakeInputComponent implements OnInit, OnDestroy {
8586

8687
ngOnInit() {
8788
this.registerInputField();
88-
this.chars = 'Ich danke also bin ich. Ich hape es gessehen. Ich weiss dass ich nichts weiss.'
89+
this.chars = this.initialText
8990
.split('').map(char => {
9091
return {
9192
char

0 commit comments

Comments
 (0)