Skip to content

Commit 702b507

Browse files
authored
Merge pull request #83 from jofftiquez/patch-1
Added vue implemetation
2 parents 9225c4a + 1ea6348 commit 702b507

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,29 @@ registerElement("Fab", () => require("nativescript-floatingactionbutton").Fab);
7373
</StackLayout>
7474
```
7575

76+
#### NativeScript Vue
77+
```javascript
78+
import Vue from 'nativescript-vue';
79+
80+
Vue.registerElement('Fab', () => require('nativescript-floatingactionbutton').Fab);
81+
```
82+
83+
#### Template
84+
```vue
85+
<template>
86+
<page>
87+
<grid-layout rows="auto, *">
88+
<list-view row="1" items="{{ users }}">
89+
<list-view.itemTemplate>
90+
<label text="{{ name }}" textWrap="true" fontSize="18" margin="20" />
91+
</list-view.itemTemplate>
92+
</list-view>
93+
<fab @tap="fabTap" row="1" icon="res://ic_add_white" rippleColor="#f1f1f1" class="fab-button"></fab>
94+
</grid-layout>
95+
</page>
96+
</template>
97+
```
98+
7699
#### CSS
77100
Recommended CSS styles.
78101
```CSS

0 commit comments

Comments
 (0)