Skip to content

Commit 02d1078

Browse files
committed
change some more names
1 parent c91cd3c commit 02d1078

File tree

6 files changed

+14
-11
lines changed

6 files changed

+14
-11
lines changed

projects/angular-keyboard/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
## Installation
44

55
1. npm install `@taskbase/angular-keyboard`
6-
2. Add `import {AngularKeyboard} from '@taskbase/angular-keyboard'` to your AppModule
6+
2. Add `import {AngularKeyboardModule} from '@taskbase/angular-keyboard'` to your AppModule
77
3. Configure the angular-keyboard in the module imports, something like this:
88
```
99
AngularKeyboardModule.forRoot({
@@ -32,6 +32,9 @@
3232
```
3333
4. Wrap the whole app content in `app.component.html` with `<tb-keyboard-container>...</tb-keyboard-container>`
3434

35+
5. Add `<tb-input (text)="onTextChange($event)">
36+
</tb-input>`
37+
3538
Note: If you only need the feature on some specific pages, you can also only load it there. Just make sure that the whole page content is wrapped.
3639

3740

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"name": "angular-keyboard",
2+
"name": "@taskbase/angular-keyboard",
33
"version": "0.0.1",
44
"peerDependencies": {
55
"@angular/common": "^8.1.3",
66
"@angular/core": "^8.1.3"
77
}
8-
}
8+
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {KEYBOARD_CONFIG} from '../../constants';
55
import {AngularKeyboardModuleConfig} from '../../angular-keyboard.module';
66

77
@Component({
8-
selector: 'app-fake-char',
8+
selector: 'tb-fake-char',
99
templateUrl: './fake-char.component.html',
1010
styleUrls: ['./fake-char.component.scss'],
1111
changeDetection: ChangeDetectionStrategy.OnPush

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
#wrapper
44
(click)="onClickInputField($event)">
55
<ng-container *ngFor="let char of chars; let idx = index">
6-
<app-fake-char #fakechar
6+
<tb-fake-char #fakechar
77
(clickLeft)="onClickCharLeft(char, idx)"
88
(clickRight)="onClickCharRight(char, idx)"
99
[char]="char"
10-
[cursor]="getCursor(idx)"></app-fake-char>
10+
[cursor]="getCursor(idx)"></tb-fake-char>
1111
</ng-container>
1212
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ interface Cursor {
3232
}
3333

3434
@Component({
35-
selector: 'app-fake-input',
35+
selector: 'tb-input',
3636
templateUrl: './fake-input.component.html',
3737
styleUrls: ['./fake-input.component.scss']
3838
})

src/app/keyboard-demo/keyboard-demo/keyboard-demo.component.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ <h1>Keyboard Demo</h1>
66
Click into the input field to open the keyboard.
77
</p>
88
<div style="width: 500px; max-width: 100%; margin: 0 auto;">
9-
<app-fake-input (text)="onTextChange($event)">
10-
</app-fake-input>
9+
<tb-input (text)="onTextChange($event)">
10+
</tb-input>
1111
</div>
1212

1313
<p>
1414
Here's a second input field with suggestion mode turned on.
1515
</p>
1616
<div style="width: 400px; max-width: 100%; margin: 0 auto;">
17-
<app-fake-input [suggestionMode]="true"
17+
<tb-input [suggestionMode]="true"
1818
(text)="onTextChange($event)">
19-
</app-fake-input>
19+
</tb-input>
2020
</div>
2121

2222
<p>

0 commit comments

Comments
 (0)