mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
feat(core): nativescript.config and webpack updates (#8801)
This commit is contained in:
34
apps/automated/src/ui/label/label.md
Normal file
34
apps/automated/src/ui/label/label.md
Normal file
@@ -0,0 +1,34 @@
|
||||
---
|
||||
nav-title: "Label How-To"
|
||||
title: "label"
|
||||
environment: nativescript
|
||||
description: "Examples for using Label"
|
||||
previous_url: /ApiReference/ui/label/HOW-TO
|
||||
---
|
||||
# Label
|
||||
Using a label requires the Label module.
|
||||
{%snippet label-require%}
|
||||
|
||||
### Binding the Label text property to a view-model property.
|
||||
``` XML
|
||||
<Page>
|
||||
{%raw%}<Label text="{{ title }}" />{%endraw%}
|
||||
</Page>
|
||||
```
|
||||
### Setting the label text content
|
||||
{%snippet label-settext%}
|
||||
|
||||
### Turning on text wrapping for a label
|
||||
{%snippet label-textwrap%}
|
||||
|
||||
### Styling a label via css class
|
||||
{%snippet label-cssclass%}
|
||||
|
||||
### Styling a label via css type
|
||||
{%snippet label-cssclass-type%}
|
||||
|
||||
### Styling a label via css control identifier
|
||||
{%snippet label-css-identifier%}
|
||||
|
||||
### Binding text property of a label to an observable model
|
||||
{%snippet label-observable%}
|
||||
Reference in New Issue
Block a user