Files
NativeScript/apps/tests/ui/label/label.md
2016-04-15 12:14:06 +03:00

33 lines
782 B
Markdown

---
nav-title: "Label How-To"
title: "How-To"
description: "Examples for using Label"
---
# 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'/>