mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
27 lines
902 B
Markdown
27 lines
902 B
Markdown
---
|
|
nav-title: "TextView How-To"
|
|
title: "How-To"
|
|
description: "Examples for using TextView"
|
|
---
|
|
# TextView
|
|
Using a TextView requires the text-view module.
|
|
<snippet id='require-textmodules'/>
|
|
<snippet id='require-observable'/>
|
|
### Binding two TextViews text property to observable view-model property.
|
|
<snippet id='text-view-xml'/>
|
|
<snippet id='observable-declare'/>
|
|
### Creating a TextView
|
|
<snippet id='text-view-create'/>
|
|
### Setting the text of a TextView
|
|
<snippet id='set-text-value'/>
|
|
### Binding text property directly to model
|
|
<snippet id='binding-text-property'/>
|
|
### Setting the hint of a TextView
|
|
<snippet id='set-textview-hint'/>
|
|
### Binding hint property directly to model
|
|
<snippet id='binding-hint-property'/>
|
|
### Setting the editable property of a TextView
|
|
<snippet id='setting-editable-property'/>
|
|
### Binding editable property directly to model
|
|
<snippet id='binding-editable-property'/>
|