2.0.1 • Published 3 years ago

flexerant-vuetify-number-field v2.0.1

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

Vuetify number field

A numeric field component built from Vuetify's v-text-field component.

Installation

Global

Note: The numeral package may also need to be installed.

import Vue from "vue";
import VNumberField from "flexerant-vuetify-number-field";

Vue.use(VNumberField);
Vue.component("v-number-field", VNumberField);

In-Component Import

Note: The numeral package may also need to be installed.

// component.vue
import VNumberField from "flexerant-vuetify-number-field";

export default {
  components: {
    "v-number-field": VNumberField,
  },
};

Usage

The component uses Vuetify's text-field API, therfore the same props, slots, events, and functions can be used.

<v-number-field />

Additional props are listed below;

NameDescriptionTypeDefault
formatPrepends/appends the appropriate symbol based on the selected locale.'none' | 'currency' | 'percent''none'
minThe minimum allowed value. Values below it will be discarded.numberNumber.MIN_SAFE_INTEGER
maxThe maximum allowed value. Values above it will be discarded.numberNumber.MAX_SAFE_INTEGER
decimal-placesThe number of decimal places to display. Applies to the model also.number2
stepThe step used when increment/decrement buttons are clicked.number0.1
localeThe locale used for the currency and percent symbols.number'en'

Any locale supported by numeral can be used.

Credits

vue-sfc-rollup

dsvanidze/vue-sfc-rollup

2.0.1

3 years ago

2.0.1-beta.1

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.0.2

4 years ago

1.0.1

4 years ago

0.0.0

4 years ago

1.0.0

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

0.1.0-beta.1

4 years ago