mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-19 14:20:22 +08:00
29 lines
676 B
Markdown
29 lines
676 B
Markdown
---
|
|
nav-title: "WrapLayout How-To"
|
|
title: "wrap-layout"
|
|
environment: nativescript
|
|
description: "Examples for using WrapLayout"
|
|
previous_url: /ApiReference/ui/layouts/wrap-layout/HOW-TO
|
|
---
|
|
# WrapLayout
|
|
Using a WrapLayout requires the WrapLayout module.
|
|
{%snippet wrap-layout-require%}
|
|
|
|
### Declaring a WrapLayout.
|
|
``` XML
|
|
<Page>
|
|
<WrapLayout>
|
|
<Label text="This is Label 1" />
|
|
<Label text="This is Label 2" />
|
|
<Label text="This is Label 3" />
|
|
<Label text="This is Label 4" />
|
|
</WrapLayout>
|
|
</Page>
|
|
```
|
|
|
|
## Creating a WrapLayout
|
|
{%snippet wrap-layout-new%}
|
|
|
|
## Setting the orientation of a wrap-layout.
|
|
{%snippet wrap-layout-orientation%}
|