v-number-panel

1.0.3 • Public • Published

v-number-panel

A Vue directive for entering numbers and additional characters with a virtual keyboard.

Demo

Installation

npm i v-number-panel --save

Usage

The Simplest Way

<input type="text" v-number-panel>

with Additional inputs

You can input additional character(s).

<!-- HTML -->
<input type="text" v-number-panel="numberPanelOptions">

// JS
new Vue({
    el: '#app',
    data: {
        numberPanelOptions: {
            extraInputs: {
                '-': 'Dash',
                '*': 'Asterisk'
            },
            clear: true // Clear when focus
        }
    }
});

License

This package is licensed under the MIT License.

Copyright 2018 Sukohi Kuhoh

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.3
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.3
    3
  • 1.0.2
    1
  • 1.0.1
    0
  • 1.0.0
    0

Package Sidebar

Install

npm i v-number-panel

Weekly Downloads

4

Version

1.0.3

License

MIT

Unpacked Size

13.5 kB

Total Files

6

Last publish

Collaborators

  • sukohi