mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
Needed to have a nice structured cookbook dir in the docs Includes: Move the data-module tests under the data dir Move the frame tests under the ui dir Rename the dialog.md file to dialogs.md Fix the web-view title Add previous_url attributes to each article for SEO Rename the style dir to styling to match the reference Fix the frame-tests path
28 lines
953 B
Markdown
28 lines
953 B
Markdown
---
|
|
nav-title: "TextView How-To"
|
|
title: "text-view"
|
|
description: "Examples for using TextView"
|
|
previous_url: /ApiReference/ui/text-view/HOW-TO
|
|
---
|
|
# 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'/>
|