Vue UI Components Documentation
The Vue NumberInput enables users to input numbers. This guide adds the Vue NumberInput (jqxNumberInput) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.base.css';
import 'jqwidgets-scripts/jqwidgets/styles/jqx.tailwind-blue-dark.css';
With <script setup>, an imported component is ready to use in the template. jqx.base.css is required; the second file is a theme, selected with the theme attribute.
The Default Functionality demo as a Single-File Component:
<template>
<div>
<div style="margin-top: 10px">Number</div>
<JqxNumberInput :width="250" :height="25" :spinButtons="true"></JqxNumberInput>
<div style="margin-top: 10px">Percentage</div>
<JqxNumberInput
:width="250"
:height="25"
:symbolPosition="'right'"
:symbol="'%'"
:spinButtons="true"
:digits="3"
>
</JqxNumberInput>
<div style="margin-top: 10px">Currency</div>
<JqxNumberInput :width="250" :height="25" :symbol="'$'" :spinButtons="true">
</JqxNumberInput>
<div style="margin-top: 10px">Disabled</div>
<JqxNumberInput :width="250" :height="25" :disabled="true" :spinButtons="true">
</JqxNumberInput>
</div>
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
<style></style>
Options are attributes. Bind values from the script with :, for example :width="850".
Listen to an event with @ and its name. For example, change: This event is triggered when the value is changed and the control's focus is lost.
<script setup>
function onChange(event) {
console.log(event.args);
}
</script>
<template>
<JqxNumberInput @change="onChange" />
</template>
Call methods through a template ref. For example, val: Sets or gets the value.
<script setup>
import { ref, onMounted } from 'vue';
const myNumberInput = ref(null);
onMounted(() => {
const value = myNumberInput.value.val();
console.log(value);
});
</script>
<template>
<JqxNumberInput ref="myNumberInput" />
</template>
Every component also has setOptions({ … }) and getOptions('name').