Skip to content

Commit

Permalink
Added ScrollView (nativescript-vue#39)
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen authored and rigor789 committed Feb 19, 2018
1 parent 7b6654b commit 5bc1b11
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 3 deletions.
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
dist
node_modules
.idea/
dist/
node_modules/
content/.links_checked.json
content/links_failed.json
2 changes: 1 addition & 1 deletion build/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ Metalsmith(cwd)
'elements:action-bar',
'elements:components',
'elements:dialogs'
]
];

if (a.fileName) {
return a.fileName.localeCompare(b.fileName);
Expand Down
35 changes: 35 additions & 0 deletions content/docs/en/elements/components/scroll-view.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
---
title: ScrollView
apiRef: https://docs.nativescript.org/api-reference/classes/_ui_scroll_view_.scrollview
contributors: [eddyverbruggen]
---

The ScrollView component allows you to show scrollable content.

---

```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>
```

[> screenshots for=ScrollView <]

## Props

| name | type | description |
|------|------|-------------|
| `orientation` | `String` | Either `horizontal` or `vertical`. Default `vertical`.

## Events

| name | description |
|------|-------------|
| `scroll`| Emitted when a scroll event occurs

0 comments on commit 5bc1b11

Please sign in to comment.