Security News
Supply Chain Attack Detected in Solana's web3.js Library
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
v-currency-field
Advanced tools
import Vue from 'vue'
import currency from 'v-currency-field'
import 'v-currency-field/dist/index.css'
Vue.use(currency)
<template>
<div>
<v-currency-field label="Value" v-bind="currency_config" :error-messages="errors.price" v-model="price"></v-currency-field>
</div>
</template>
<script>
export default {
data () {
return {
errors: {},
price: 123.45,
currency_config: {
decimal: ',',
thousands: '.',
prefix: 'R$ ',
suffix: ' #',
precision: 2,
masked: false,
allowBlank: false,
min: Number.MIN_SAFE_INTEGER,
max: Number.MAX_SAFE_INTEGER
}
}
}
}
</script>
All v-money properties
property | Required | Type | Default | Description |
---|---|---|---|---|
precision | true | Number | 2 | How many decimal places |
decimal | false | String | "." | Decimal separator |
thousands | false | String | "," | Thousands separator |
prefix | false | String | "" | Currency symbol followed by a Space, like "R$ " |
suffix | false | String | "" | Percentage for example: " %" |
masked | false | Boolean | false | If the component output should include the mask or not |
allowBlank | false | Boolean | false | If the field can start blank and be cleared out by user |
min | false | Number | Number.MIN_SAFE_INTEGER | The min value allowed |
max | false | Number | Number.MAX_SAFE_INTEGER | The max value allowed |
And all vuetify properties
property | Required | Type |
---|---|---|
appendOuterIcon | false | String |
appendOuterIconCb | false | Function |
autofocus | false | Boolean |
box | false | Boolean |
browserAutocomplete | false | String |
clearable | false | Boolean |
clearIcon | false | String |
clearIconCb | false | Number |
color | false | String |
flat | false | Boolean |
fullWidth | false | Boolean |
label | false | String |
outline | false | Boolean |
placeholder | false | String |
prependInnerIcon | false | String |
prependInnerIconCb | false | Function |
reverse | false | Boolean |
singleLine | false | Boolean |
solo | false | Boolean |
soloInverted | false | Boolean |
FAQs
Currency component for vuetify v-text-field
The npm package v-currency-field receives a total of 2,168 weekly downloads. As such, v-currency-field popularity was classified as popular.
We found that v-currency-field demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A supply chain attack has been detected in versions 1.95.6 and 1.95.7 of the popular @solana/web3.js library.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.