1.0.23 • Published 3 years ago

vue2-currency-input v1.0.23

Weekly downloads
-
License
-
Repository
-
Last release
3 years ago

Vue 2 Currency Input

Vue 2.x input component that formats numbers into USD currency as the user types.

Demo

demo

Install

npm install vue2-currency-input --save

Usage

<script>
import Vue from 'vue';
import CurrencyInput from "vue2-currency-input";

export default Vue.extend({
  name: 'ServeDev',
  components: {
    CurrencyInput
  }
});
</script>

<template>
  <div id="app">
    <currency-input />
  </div>
</template>

Additional Notes

This component only formats to US currency.

It will take a string or number and always returns a float

If the string is empty a 0.00 will be returned

Released under the MIT License.

1.0.23

3 years ago

1.0.22

3 years ago

1.0.20

3 years ago

1.0.19

3 years ago

1.0.18

3 years ago

1.0.17

3 years ago

1.0.16

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.13

3 years ago

1.0.12

3 years ago

1.0.11

3 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago