File tree Expand file tree Collapse file tree 2 files changed +5
-2
lines changed
app/ui-category/text-view Expand file tree Collapse file tree 2 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change 11import { NgModule , NO_ERRORS_SCHEMA } from "@angular/core" ;
22import { NativeScriptRouterModule } from "nativescript-angular/router" ;
33import { NativeScriptModule } from "nativescript-angular/platform" ;
4+ import { NativeScriptFormsModule } from "nativescript-angular/forms" ;
45import { TextViewExamplesComponent } from "./text-view-examples.component" ;
56import { BasicTextViewComponent } from "./basic-text-view/basic-text-view.component" ;
67import { 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 ] ,
You can’t perform that action at this time.
0 commit comments