Files
NativeScript/apps/tests/ui/text-view/text-view.md
Nikolay Tsonev fd7289a4c9 modify snippets
2016-04-15 16:27:56 +03:00

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'/>