Skip to content

Commit 6a48dda

Browse files
authored
Merge pull request #140 from NativeScript/niliev/text-view
Niliev/text view
2 parents eeb9240 + c17b8d1 commit 6a48dda

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

app/ui-category/text-view/basic-text-view/basic-text-view.component.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,9 @@
44
<Button [text]="buttonText" class="btn btn-primary btn-active" (tap)="disableTextView()"></Button>
55
<Button text="Show text" class="btn btn-outline btn-active" (tap)="showText()"></Button>
66
<StackLayout class="input-field">
7-
<TextView hint="Enter text" class="input input-border" returnKeyType="done" (returnPress)="submit($event)" [(ngModel)]="tvtext"
8-
[editable]="editState"></TextView>
7+
<Label text="Enter text:" class="label"></Label>
8+
<TextView [(ngModel)]="tvtext" hint="Enter some text" returnKeyType="send" (returnPress)="submit($event)" [editable]="editState"
9+
class="input input-border"></TextView>
910
</StackLayout>
1011
<!-- << textview-html -->
1112
</StackLayout>

app/ui-category/text-view/text-view-examples.module.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { NgModule, NO_ERRORS_SCHEMA } from "@angular/core";
22
import { NativeScriptRouterModule } from "nativescript-angular/router";
33
import { NativeScriptModule } from "nativescript-angular/platform";
4+
import { NativeScriptFormsModule } from "nativescript-angular/forms";
45
import { TextViewExamplesComponent } from "./text-view-examples.component";
56
import { BasicTextViewComponent } from "./basic-text-view/basic-text-view.component";
67
import { TitleAndNavButtonModule } from "../../directives/title-and-nav-button.module";
@@ -22,6 +23,7 @@ export const routerConfig = [
2223
imports: [
2324
TitleAndNavButtonModule,
2425
NativeScriptModule,
26+
NativeScriptFormsModule,
2527
NativeScriptRouterModule,
2628
NativeScriptRouterModule.forChild(routerConfig)
2729
],

0 commit comments

Comments
 (0)