Skip to content

Commit 5bc1b11

Browse files
EddyVerbruggenrigor789
authored andcommitted
Added ScrollView (#39)
1 parent 7b6654b commit 5bc1b11

File tree

3 files changed

+39
-3
lines changed

3 files changed

+39
-3
lines changed

.gitignore

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
dist
2-
node_modules
1+
.idea/
2+
dist/
3+
node_modules/
34
content/.links_checked.json
45
content/links_failed.json

build/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ Metalsmith(cwd)
6262
'elements:action-bar',
6363
'elements:components',
6464
'elements:dialogs'
65-
]
65+
];
6666

6767
if (a.fileName) {
6868
return a.fileName.localeCompare(b.fileName);
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
---
2+
title: ScrollView
3+
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_scroll_view_.scrollview
4+
contributors: [eddyverbruggen]
5+
---
6+
7+
The ScrollView component allows you to show scrollable content.
8+
9+
---
10+
11+
```html
12+
<ScrollView orientation="horizontal">
13+
<StackLayout orientation="horizontal">
14+
<Label text="this" />
15+
<Label text="text" />
16+
<Label text="scrolls" />
17+
<Label text="horizontally" />
18+
<Label text="if necessary" />
19+
</StackLayout>
20+
</ScrollView>
21+
```
22+
23+
[> screenshots for=ScrollView <]
24+
25+
## Props
26+
27+
| name | type | description |
28+
|------|------|-------------|
29+
| `orientation` | `String` | Either `horizontal` or `vertical`. Default `vertical`.
30+
31+
## Events
32+
33+
| name | description |
34+
|------|-------------|
35+
| `scroll`| Emitted when a scroll event occurs

0 commit comments

Comments
 (0)