We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 605eeb5 commit 233353dCopy full SHA for 233353d
README.md
@@ -92,6 +92,25 @@ export class SomeComponent {
92
</StackLayout>
93
```
94
95
+### NativeScript-Vue Usage Sample
96
+
97
+In your `main.js` (The file where the root Vue instance is created) register the element
98
99
+```js
100
+Vue.registerElement('CheckBox', () => require('nativescript-checkbox').CheckBox, {
101
+ model: {
102
+ prop: 'checked',
103
+ event: 'checkedChange'
104
+ }
105
+})
106
+```
107
108
+And in your template, use it
109
110
+```html
111
+<CheckBox v-model="myCheckedProp" fillColor="red" text="Check me!" />
112
113
114
## Properties
115
116
- **checked** - boolean
0 commit comments