Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
55 changes: 45 additions & 10 deletions content/docs/en/elements/components/scroll-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,50 @@ contributors: [eddyverbruggen,ikoevska]
---

```html
<ScrollView orientation="horizontal">
<StackLayout orientation="horizontal">
<Label text="this" />
<Label text="text" />
<Label text="scrolls" />
<Label text="horizontally" />
<Label text="if necessary" />
</StackLayout>
</ScrollView>
<GridLayout rows="auto, *">
<ScrollView row="0" orientation="horizontal">
<StackLayout orientation="horizontal">
<Label text="h1" class="m-10" />
<Label text="h2" class="m-10" />
<Label text="h3" class="m-10" />
<Label text="h4" class="m-10" />
<Label text="h5" class="m-10" />
<Label text="h6" class="m-10" />
<Label text="h7" class="m-10" />
<Label text="h8" class="m-10" />
<Label text="h9" class="m-10" />
<Label text="h10" class="m-10" />
<Label text="h11" class="m-10" />
<Label text="h12" class="m-10" />
</StackLayout>
</ScrollView>
<ScrollView row="1" horizontalAlignment="center">
<StackLayout>
<Label text="v1" class="m-10" />
<Label text="v2" class="m-10" />
<Label text="v3" class="m-10" />
<Label text="v4" class="m-10" />
<Label text="v5" class="m-10" />
<Label text="v6" class="m-10" />
<Label text="v7" class="m-10" />
<Label text="v8" class="m-10" />
<Label text="v9" class="m-10" />
<Label text="v10" class="m-10" />
<Label text="v11" class="m-10" />
<Label text="v12" class="m-10" />
<Label text="v13" class="m-10" />
<Label text="v14" class="m-10" />
<Label text="v15" class="m-10" />
<Label text="v16" class="m-10" />
<Label text="v17" class="m-10" />
<Label text="v18" class="m-10" />
<Label text="v19" class="m-10" />
<Label text="v20" class="m-10" />
<Label text="v21" class="m-10" />
<Label text="v22" class="m-10" />
</StackLayout>
</ScrollView>
</GridLayout>
```

[> screenshots for=ScrollView <]
Expand All @@ -39,4 +74,4 @@ contributors: [eddyverbruggen,ikoevska]

| Android | iOS |
|---------|-----|
| [`android.view`](https://developer.android.com/reference/android/view/View.html) | [`UIScrollView`](https://developer.apple.com/documentation/uikit/uiscrollview)
| [`android.view`](https://developer.android.com/reference/android/view/View.html) | [`UIScrollView`](https://developer.apple.com/documentation/uikit/uiscrollview)