| Name | Type | Default |
|
allowNull
# |
Boolean
|
true
|
Determines whether the widget's value could be null.
<template>
<JqxNumberInput ref="myNumberInput" :allowNull="false" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
autoHidePromptChar
# |
Boolean
|
true
|
Determines whether the the prompt char is visible only when the component is on focus.
<template>
<JqxNumberInput ref="myNumberInput"
:autoHidePromptChar="false"
/>
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
decimal
# |
Number
|
0
|
Sets or gets the input's number.
<template>
<JqxNumberInput ref="myNumberInput" :decimal="2" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
disabled
# |
Boolean
|
false
|
Determines whether jqxNumberInput is disabled.
<template>
<JqxNumberInput ref="myNumberInput" :disabled="true" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
decimalDigits
# |
Number
|
2
|
Indicates the number of decimal places to use in numeric values.
<template>
<JqxNumberInput ref="myNumberInput" :decimalDigits="3" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
decimalSeparator
# |
String
|
'.'
|
Sets or gets the char to use as the decimal separator in numeric values.
<template>
<JqxNumberInput ref="myNumberInput" :decimalSeparator="','" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
digits
# |
Number
|
8
|
Sets or gets the digits in the input
<template>
<JqxNumberInput ref="myNumberInput" :digits="8" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
groupSeparator
# |
String
|
','
|
Sets or gets the string that separates groups of digits to the left of the decimal in numeric values.
<template>
<JqxNumberInput ref="myNumberInput" :groupSeparator="'.'" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
groupSize
# |
Number
|
3
|
Sets or gets the number of digits in each group to the left of the decimal in numeric values.
<template>
<JqxNumberInput ref="myNumberInput" :groupSize="2" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
height
# |
Number | String
|
null
|
Sets or gets the height of the input in pixels.
<template>
<JqxNumberInput ref="myNumberInput" :height="25" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
inputMode
# |
String
|
'advanced'
|
Sets or gets the input's mode.
Possible Values:
'advanced'- the number input behavior resembles a masked input with numeric mask
'simple'-the widget works as a normal textbox, but restricts the user's input to numbers
<template>
<JqxNumberInput ref="myNumberInput" :inputMode="'simple'" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
min
# |
Number
|
-99999999
|
Sets or gets the input's minimum value.
<template>
<JqxNumberInput ref="myNumberInput" :min="2" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
max
# |
Number
|
99999999
|
Sets or gets the input's maximum value.
<template>
<JqxNumberInput ref="myNumberInput" :max="50" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
negativeSymbol
# |
String
|
'-'
|
Sets or gets the string to use as negative symbol.
<template>
<JqxNumberInput ref="myNumberInput" :negativeSymbol="'-'" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
placeHolder
# |
String
|
""
|
Determines the widget's place holder displayed when the widget's value is null.
<template>
<JqxNumberInput ref="myNumberInput" :placeHolder="'Null Value'" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
const myNumberInput = ref(null);
onMounted(() => {
myNumberInput.value.val(null);
});
</script>
|
|
promptChar
# |
String
|
-
|
Sets or gets the prompt char displayed when an editable char is empty.
Possible Values:
'_'
'?'
';'
'#'
<template>
<JqxNumberInput ref="myNumberInput" :promptChar="'#'" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
rtl
# |
Boolean
|
false
|
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts.
<template>
<JqxNumberInput ref="myNumberInput" :rtl="true" :spinButtons="true" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
readOnly
# |
Boolean
|
false
|
Sets or gets the readOnly state of the input.
<template>
<JqxNumberInput ref="myNumberInput" :readOnly="true" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
spinMode
# |
String
|
'advanced'
|
Sets or gets the spin mode.
Possible Values:
'advanced'- the value is increased depending on the caret's position
'simple'-pecifies that the spin behavior is disabled
<template>
<JqxNumberInput ref="myNumberInput" :spinButtons="true" :spinMode="'simple'" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
spinButtons
# |
Boolean
|
false
|
Shows or hides the spin buttons.
<template>
<JqxNumberInput ref="myNumberInput" :spinButtons="true" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
spinButtonsWidth
# |
Number
|
18
|
Sets or gets the width of the spin buttons.
<template>
<JqxNumberInput ref="myNumberInput" :spinButtons="true" :spinButtonsWidth="30" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
spinButtonsStep
# |
Number
|
1
|
Sets or gets the increase/decrease step.
<template>
<JqxNumberInput ref="myNumberInput" :spinButtons="true" :spinButtonsStep="10" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
symbol
# |
String
|
''
|
Sets or gets the string to use as currency or percentage symbol.
<template>
<JqxNumberInput ref="myNumberInput" :symbol="'$'" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
symbolPosition
# |
String
|
'left'
|
Sets or gets the position of the symbol in the input.
Possible Values:
'left'
'right'
<template>
<JqxNumberInput ref="myNumberInput" :symbol="'@'" :symbolPosition="'right'" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
textAlign
# |
String
|
'right'
|
Sets or gets the alignment.
<template>
<JqxNumberInput ref="myNumberInput" :textAlign="'left'" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
template
# |
String
|
'default'
|
Determines the template as an alternative of the default styles.
Possible Values:
'default' - the default template. The style depends only on the "theme" property value.
'primary' - dark blue style for extra visual weight.
'success' - green style for successful or positive action.
'warning' - orange style which indicates caution.
'danger' - red style which indicates a dangerous or negative action.
'info' - blue button, not tied to a semantic action or use.
<template>
<JqxNumberInput ref="myNumberInput" :spinButtons="true" :template="'success'" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
<template>
<JqxNumberInput ref="myNumberInput" :theme="'material'" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
value
# |
Number
|
null
|
<template>
<JqxNumberInput ref="myNumberInput" :value="100" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
width
# |
Number | String
|
null
|
Sets or gets the width of the input in pixels. Only positive values have effect.
<template>
<JqxNumberInput ref="myNumberInput" :width="250" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
</script>
|
|
|
|
change
# |
Event
|
|
This event is triggered when the value is changed and the control's focus is lost.
Code examples #
Bind to the change event of jqxNumberInput.
<template>
<JqxNumberInput ref="myNumberInput" @change="onChange($event)" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
function onChange(event) {
alert('do something...');
}
</script>
|
|
textchanged
# |
Event
|
|
This event is triggered when the user entered entered a text.
Code examples #
Bind to the textchanged event of jqxNumberInput.
<template>
<JqxNumberInput ref="myNumberInput" @textchanged="onTextchanged($event)" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
function onTextchanged(event) {
alert('do something...');
}
</script>
|
|
valueChanged
# |
Event
|
|
This event is triggered after value is changed.
Code examples #
Bind to the valueChanged event of jqxNumberInput.
<template>
<JqxNumberInput ref="myNumberInput" @valueChanged="onValueChanged($event)" />
</template>
<script setup>
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
function onValueChanged(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
clear
# |
None
|
None
|
Clears the value.
<template>
<JqxNumberInput ref="myNumberInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
const myNumberInput = ref(null);
onMounted(() => {
myNumberInput.value.decimal = 200;
myNumberInput.value.clear();
});
</script>
|
|
destroy
# |
None
|
None
|
Destroys the widget.
<template>
<JqxNumberInput ref="myNumberInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
const myNumberInput = ref(null);
onMounted(() => {
myNumberInput.value.destroy();
});
</script>
|
|
focus
# |
None
|
None
|
Focuses the widget.
<template>
<JqxNumberInput ref="myNumberInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
const myNumberInput = ref(null);
onMounted(() => {
myNumberInput.value.focus();
});
</script>
|
|
getDecimal
# |
None
|
Number
|
Gets the value.
<template>
<JqxNumberInput ref="myNumberInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
const myNumberInput = ref(null);
onMounted(() => {
myNumberInput.value.decimal = 200;
const value = myNumberInput.value.getDecimal();
});
</script>
|
|
setDecimal
# |
index
|
None
|
Sets the value.
<template>
<JqxNumberInput ref="myNumberInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
const myNumberInput = ref(null);
onMounted(() => {
myNumberInput.value.setDecimal(200);
});
</script>
|
|
val
# |
value
|
Number
|
Sets or gets the value.
<template>
<JqxNumberInput ref="myNumberInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxNumberInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxnumberinput.vue';
const myNumberInput = ref(null);
onMounted(() => {
const value = myNumberInput.value.val();
});
</script>
|