Skip to content

Commit 3747fd6

Browse files
committed
updated docs
1 parent 853b132 commit 3747fd6

File tree

1 file changed

+37
-10
lines changed

1 file changed

+37
-10
lines changed

docs/guide/integration.md

Lines changed: 37 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,39 @@
11
# Integration
22

3-
### Quasar
4-
5-
<p>
6-
<iframe src="https://codesandbox.io/embed/vue-number-format-integration-with-quasar-nxqb77?fontsize=14&hidenavigation=1&theme=dark"
7-
style="width:100%; height:500px; border:0; border-radius: 4px; overflow:hidden;"
8-
title="Vue Number Format: Integration with Quasar"
9-
allow="accelerometer; ambient-light-sensor; camera; encrypted-media; geolocation; gyroscope; hid; microphone; midi; payment; usb; vr; xr-spatial-tracking"
10-
sandbox="allow-forms allow-modals allow-popups allow-presentation allow-same-origin allow-scripts"
11-
></iframe>
12-
</p>
3+
## Quasar
4+
5+
The QNumber component is used to capture number input from the user. It uses v-model, similar to a regular input. It has support for errors and validation, and comes in a variety of styles, colors, and types.
6+
7+
### Install
8+
```bash
9+
quasar ext add qnumber
10+
```
11+
Quasar CLI will retrieve it from the NPM registry and install the extension to your project.
12+
13+
### Example
14+
15+
```html
16+
<q-number
17+
v-model="modelValue"
18+
@update:model-value="onChange"
19+
20+
<!-- options: https://vue-number-format.netlify.app/guide/config.html -->
21+
:options="{
22+
prefix: '$',
23+
suffix: '',
24+
separator: ',',
25+
decimal: '.',
26+
precision: 2,
27+
prefill: true,
28+
reverseFill: false,
29+
min: false,
30+
max: false,
31+
nullValue: ''
32+
}"
33+
/>
34+
```
35+
36+
### Uninstall
37+
```bash
38+
quasar ext remove qnumber
39+
```

0 commit comments

Comments
 (0)