2.0.1 • Published 3 years ago

@mutt/widget-financial v2.0.1

Weekly downloads
129
License
MIT
Repository
github
Last release
3 years ago

Mutt Forms Widget - Financial

Mutt Forms Vue widget for entering a currency value

Field Options

The financial widget accepts the following options:

optiontypedescriptiondefault
minStringThe minimum number allowed'0'
maxStringThe maximum number allowednull
stepStringThe default increment when using the up/down keys'1'
currencySymbolStringHTML encoded currency symbol'\£'
currencyStartBooleanWhen true the currency symbol is placed to the left of the input field. When false it is placed to the righttrue

Complete Example

The following example sets the min and max to 0 and 2500 respectively, the step to 10, the currency symbol to the Euro, and the currency position to the right of the input.

value: {
  label: null,
  max: '2500',
  min: '0',
  step: '10',
  natural: {
    allowZero: true,
    prefix: 'I paid €',
    suffix: '.',
    title: 'How much did you pay?',
    trigger: '',
  },
  currencySymbol: '€',
  currencyStart: false,
  widget: 'naturalfinancial',
},