Files
NativeScript/apps/tests/ui/label/label.md
Erjan Gavalji f15f283c74 Reorder test file structure to match the modules
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
2016-05-05 10:43:35 +03:00

34 lines
825 B
Markdown

---
nav-title: "Label How-To"
title: "label"
description: "Examples for using Label"
previous_url: /ApiReference/ui/label/HOW-TO
---
# Label
Using a label requires the Label module.
<snippet id='label-require'/>
### Binding the Label text property to a view-model property.
``` XML
<Page>
{%raw%}<Label text="{{ title }}" />{%endraw%}
</Page>
```
### How to set label text content
<snippet id='label-settext'/>
### How to turn on text wrapping for a label
<snippet id='label-textwrap'/>
### How to style a label via css class
<snippet id='label-cssclass'/>
### How to style a label via css type
<snippet id='label-cssclass-type'/>
### How to style a label via css control identifier
<snippet id='label-css-identifier'/>
### How to bind text property of a label to an observable model
<snippet id='label-observable'/>