Skip to content
This repository was archived by the owner on Dec 13, 2019. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions source/components/input-textfield.md
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,10 @@ The below example shows a number input type.
``` html
<q-input v-model="number" type="number" float-label="Number" />
```
If you want user input to be automatically typecast as a number, you can add the number modifier to your v-model inputs:
``` html
<q-input v-model.number="age" type="number" float-label="Number">
```

### Prefixes and Suffixes
You can add a text before or after the field as part of an input mask, for instance, for showing Euro or US Dollar currency.
Expand Down