A Vue directive for entering numbers and additional characters with a virtual keyboard.
npm i v-number-panel --save
<input type="text" v-number-panel>
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
}
}
});
This package is licensed under the MIT License.
Copyright 2018 Sukohi Kuhoh