1.0.23 • Published 2 years ago

vue2-currency-input v1.0.23

Weekly downloads
-
License
-
Repository
-
Last release
2 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

2 years ago

1.0.22

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago