| Name | Type | Default |
|
disabled
# |
Boolean
|
false
|
Enables or disables the jqxFormattedInput.
<template>
<JqxFormattedInput ref="myFormattedInput" :disabled="true" />
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the disabled property. let disabled = myFormattedInput.value.disabled;
|
|
decimalNotation
# |
String
|
"default"
|
Sets or gets the notation in which to display decimal numbers.
Possible values #
'default' - the default representation of decimal numbers, e.g. 1590;
'exponential' - representation of decimal numbers in scientific exponential notation (E notation), e.g. 1.59e+3.
<template>
<JqxFormattedInput
ref="myFormattedInput"
:decimalNotation="'exponential'"
:radix="'decimal'"
:value="253000"
:width="250"
:height="25"
/>
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the decimalNotation property. let decimalNotation = myFormattedInput.value.decimalNotation;
|
|
dropDown
# |
Boolean
|
false
|
Sets or gets whether the jqxFormattedInput's dropdown (pop-up) will be enabled. The dropdown allows the user to choose the radix (numeral system) of the displayed number.
Note: the dropdown requires an additional empty div element in the initialization div of jqxFormattedInput.
<template>
<JqxFormattedInput
:width="250"
:height="25"
:radix="'decimal'"
:value="253000"
:spinButtons="true"
:dropDown="true"
>
</JqxFormattedInput>
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the dropDown property. let dropDown = myFormattedInput.value.dropDown;
|
|
dropDownWidth
# |
Number
|
null
|
Sets or gets the width of the jqxFormattedInput's dropdown (pop-up).
<template>
<JqxFormattedInput
:width="100"
:height="25"
:radix="'binary'"
:dropDownWidth="200"
:value="11111101"
:spinButtons="false"
:dropDown="true"
/>
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the dropDownWidth property. let dropDownWidth = myFormattedInput.value.dropDownWidth;
|
|
height
# |
Number | String
|
null
|
Sets or gets the jqxFormattedInput's height.
<template>
<JqxFormattedInput ref="myFormattedInput" :height="25" :value="25300" />
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the height property. let height = myFormattedInput.value.height;
|
|
min
# |
Number | String
|
'-9223372036854775808'
|
Sets or gets the minimum value of the widget. The value of min should be in the same numeral system as value. The min property can be set to no less than '-9223372036854775808' (-263) in decimal.
<template>
<JqxFormattedInput
ref="myFormattedInput"
:min="0"
:spinButtons="true"
:value="1"
:height="25"
/>
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the min property. let min = myFormattedInput.value.min;
|
|
max
# |
Number | String
|
'9223372036854775807'
|
Sets or gets the maximum value of the widget. The value of max should be in the same numeral system as value. The max property can be set to no more than '9223372036854775807' (263 - 1) in decimal.
<template>
<JqxFormattedInput
ref="myFormattedInput"
:max="111110100"
:spinButtons="true"
:value="11111101"
:height="25"
/>
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the max property. let max = myFormattedInput.value.max;
|
|
placeHolder
# |
String
|
''
|
Sets or gets the jqxFormattedInput's placeholder.
<template>
<JqxFormattedInput ref="myFormattedInput" :placeHolder="'Enter a number'" />
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the placeHolder property. let placeHolder = myFormattedInput.value.placeHolder;
|
Sets or gets the pop-up's z-index.
<template>
<JqxFormattedInput ref="myFormattedInput" :popupZIndex="99999" />
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the popupZIndex property. let popupZIndex = myFormattedInput.value.popupZIndex;
|
|
roundedCorners
# |
Boolean
|
true
|
Enables or disables the rounded corners functionality. This property setting has effect in browsers which support CSS border-radius.
<template>
<JqxFormattedInput
ref="myFormattedInput"
:roundedCorners="false"
:height="25"
:width="250"
:spinButtons="true"
/>
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the roundedCorners property. let roundedCorners = myFormattedInput.value.roundedCorners;
|
|
rtl
# |
Boolean
|
false
|
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts.
<template>
<JqxFormattedInput
ref="myFormattedInput"
:rtl="true"
:height="25"
:width="250"
:spinButtons="true"
/>
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the rtl property. let rtl = myFormattedInput.value.rtl;
|
|
radix
# |
Number | String
|
10
|
Sets or gets the radix of the jqxFormattedInput. The radix specifies the numeral system in which to display the widget's value.
Possible values #
2 or 'binary' - specifies the binary numeral system. Allowed characters for this numeral system are the digits 0 and 1;
8 or 'octal' - specifies the octal numeral system. Allowed characters for this numeral system are the digits from 0 to 7;
10 or 'decimal' - specifies the decimal numeral system. Allowed characters for this numeral system are the digits from 0 to 9;
16 or 'hexadecimal' - specifies the hexadecimal numeral system. Allowed characters for this numeral system are the digits from 0 to 9 and letters from a to f (case insensitive).
<template>
<JqxFormattedInput ref="myFormattedInput" :radix="'hexadecimal'" :value="'fd'" />
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the radix property. let radix = myFormattedInput.value.radix;
|
|
spinButtons
# |
Boolean
|
true
|
Shows or hides the spin buttons.
Note: the spin buttons require an additional empty div element in the initialization div of jqxFormattedInput.
<template>
<JqxFormattedInput ref="myFormattedInput" :spinButtons="true" :height="25" />
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the spinButtons property. let spinButtons = myFormattedInput.value.spinButtons;
|
|
spinButtonsStep
# |
Number
|
1
|
Sets or gets the increase/decrease step. The value of spinButtonsStep is a decimal number.
<template>
<JqxFormattedInput
ref="myFormattedInput"
:spinButtons="true"
:spinButtonsStep="3"
:height="25"
:width="250"
/>
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the spinButtonsStep property. let spinButtonsStep = myFormattedInput.value.spinButtonsStep;
|
|
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>
<JqxFormattedInput
ref="myFormattedInput"
:template="'primary'"
:spinButtons="true"
:height="25"
:width="250"
/>
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the template property. let template = myFormattedInput.value.template;
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
<template>
<JqxFormattedInput
ref="myFormattedInput"
:theme="'material'"
:spinButtons="true"
:height="25"
:width="250"
/>
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
|
|
upperCase
# |
Boolean
|
false
|
Sets or gets whether to use upper case when the radix property is set to 16 or 'hexadecimal'.
<template>
<JqxFormattedInput
ref="myFormattedInput"
:upperCase="true"
:radix="'hexadecimal'"
:value="'fd'"
:height="25"
/>
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the upperCase property. let upperCase = myFormattedInput.value.upperCase;
|
|
value
# |
Number | String
|
'0'
|
Sets or gets the value of the jqxFormattedInput widget. The value is in the numeral system specified by the radix property.
<template>
<JqxFormattedInput ref="myFormattedInput" :value="25300" :height="25" />
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the value property. let value = myFormattedInput.value.value;
|
|
width
# |
Number | String
|
null
|
Sets or gets the jqxFormattedInput's width.
<template>
<JqxFormattedInput
ref="myFormattedInput"
:width="200"
:height="25"
:spinButtons="true"
:radix="'binary'"
:value="11111101"
/>
</template>
<script setup>
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
</script>
Get the width property. let width = myFormattedInput.value.width;
|
|
|
|
change
# |
Event
|
|
This event is triggered when the value is changed.
Code examples #
Bind to the change event of jqxFormattedInput.
<template>
<div>
<JqxFormattedInput
@open="onOpen($event)"
@close="onClose($event)"
@change="onChange($event)"
@radixChange="onRadixChange($event)"
:width="300"
:height="25"
:radix="'decimal'"
:value="190"
:spinButtons="true"
:dropDown="true"
>
</JqxFormattedInput>
<div style="margin-top: 150px">Events log:</div>
<JqxPanel ref="myPanel" :width="300" :height="150"></JqxPanel>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpanel.vue';
const myPanel = ref(null);
function onOpen(event) {
myPanel.value.append('<strong>' + event.type + '</strong><br />');
}
function onClose(event) {
myPanel.value.append('<strong>' + event.type + '</strong><br />');
}
function onChange(event) {
const args = event.args;
const newValue = args.value;
const oldValue = args.oldValue;
const radix = args.radix;
myPanel.value.append(
'<strong>' +
event.type +
'</strong><br />' +
'value: ' +
newValue +
', old value: ' +
oldValue +
', radix: ' +
radix +
'<br />'
);
}
function onRadixChange(event) {
const args = event.args;
const newRadix = args.radix;
const oldRadix = args.oldRadix;
const newValue = args.value;
const oldValue = args.oldValue;
myPanel.value.append(
'<strong>' +
event.type +
'</strong><br />' +
'radix: ' +
newRadix +
', old radix: ' +
oldRadix +
'<br />value: ' +
newValue +
', old value: ' +
oldValue +
'<br />'
);
}
</script>
|
|
close
# |
Event
|
|
This event is triggered when the pop-up is closed.
Code examples #
Bind to the close event of jqxFormattedInput.
<template>
<div>
<JqxFormattedInput
@open="onOpen($event)"
@close="onClose($event)"
@change="onChange($event)"
@radixChange="onRadixChange($event)"
:width="300"
:height="25"
:radix="'decimal'"
:value="190"
:spinButtons="true"
:dropDown="true"
>
</JqxFormattedInput>
<div style="margin-top: 150px">Events log:</div>
<JqxPanel ref="myPanel" :width="300" :height="150"></JqxPanel>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpanel.vue';
const myPanel = ref(null);
function onOpen(event) {
myPanel.value.append('<strong>' + event.type + '</strong><br />');
}
function onClose(event) {
myPanel.value.append('<strong>' + event.type + '</strong><br />');
}
function onChange(event) {
const args = event.args;
const newValue = args.value;
const oldValue = args.oldValue;
const radix = args.radix;
myPanel.value.append(
'<strong>' +
event.type +
'</strong><br />' +
'value: ' +
newValue +
', old value: ' +
oldValue +
', radix: ' +
radix +
'<br />'
);
}
function onRadixChange(event) {
const args = event.args;
const newRadix = args.radix;
const oldRadix = args.oldRadix;
const newValue = args.value;
const oldValue = args.oldValue;
myPanel.value.append(
'<strong>' +
event.type +
'</strong><br />' +
'radix: ' +
newRadix +
', old radix: ' +
oldRadix +
'<br />value: ' +
newValue +
', old value: ' +
oldValue +
'<br />'
);
}
</script>
|
|
open
# |
Event
|
|
This event is triggered when the pop-up is opened.
Code examples #
Bind to the open event of jqxFormattedInput.
<template>
<div>
<JqxFormattedInput
@open="onOpen($event)"
@close="onClose($event)"
@change="onChange($event)"
@radixChange="onRadixChange($event)"
:width="300"
:height="25"
:radix="'decimal'"
:value="190"
:spinButtons="true"
:dropDown="true"
>
</JqxFormattedInput>
<div style="margin-top: 150px">Events log:</div>
<JqxPanel ref="myPanel" :width="300" :height="150"></JqxPanel>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpanel.vue';
const myPanel = ref(null);
function onOpen(event) {
myPanel.value.append('<strong>' + event.type + '</strong><br />');
}
function onClose(event) {
myPanel.value.append('<strong>' + event.type + '</strong><br />');
}
function onChange(event) {
const args = event.args;
const newValue = args.value;
const oldValue = args.oldValue;
const radix = args.radix;
myPanel.value.append(
'<strong>' +
event.type +
'</strong><br />' +
'value: ' +
newValue +
', old value: ' +
oldValue +
', radix: ' +
radix +
'<br />'
);
}
function onRadixChange(event) {
const args = event.args;
const newRadix = args.radix;
const oldRadix = args.oldRadix;
const newValue = args.value;
const oldValue = args.oldValue;
myPanel.value.append(
'<strong>' +
event.type +
'</strong><br />' +
'radix: ' +
newRadix +
', old radix: ' +
oldRadix +
'<br />value: ' +
newValue +
', old value: ' +
oldValue +
'<br />'
);
}
</script>
|
|
radixChange
# |
Event
|
|
This event is triggered when the radix is changed.
Code examples #
Bind to the radixChange event of jqxFormattedInput.
<template>
<div>
<JqxFormattedInput
@open="onOpen($event)"
@close="onClose($event)"
@change="onChange($event)"
@radixChange="onRadixChange($event)"
:width="300"
:height="25"
:radix="'decimal'"
:value="190"
:spinButtons="true"
:dropDown="true"
>
</JqxFormattedInput>
<div style="margin-top: 150px">Events log:</div>
<JqxPanel ref="myPanel" :width="300" :height="150"></JqxPanel>
</div>
</template>
<script setup>
import { ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
import JqxPanel from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxpanel.vue';
const myPanel = ref(null);
function onOpen(event) {
myPanel.value.append('<strong>' + event.type + '</strong><br />');
}
function onClose(event) {
myPanel.value.append('<strong>' + event.type + '</strong><br />');
}
function onChange(event) {
const args = event.args;
const newValue = args.value;
const oldValue = args.oldValue;
const radix = args.radix;
myPanel.value.append(
'<strong>' +
event.type +
'</strong><br />' +
'value: ' +
newValue +
', old value: ' +
oldValue +
', radix: ' +
radix +
'<br />'
);
}
function onRadixChange(event) {
const args = event.args;
const newRadix = args.radix;
const oldRadix = args.oldRadix;
const newValue = args.value;
const oldValue = args.oldValue;
myPanel.value.append(
'<strong>' +
event.type +
'</strong><br />' +
'radix: ' +
newRadix +
', old radix: ' +
oldRadix +
'<br />value: ' +
newValue +
', old value: ' +
oldValue +
'<br />'
);
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
close
# |
None
|
None
|
Closes the jqxFormattedInput pop-up.
<template>
<JqxFormattedInput
ref="myFormattedInput"
:width="200"
:height="25"
:radix="'decimal'"
:value="190"
:spinButtons="true"
:dropDown="true"
>
</JqxFormattedInput>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
const myFormattedInput = ref(null);
onMounted(() => {
myFormattedInput.value.open();
setTimeout((_) => myFormattedInput.value.close(), 1000);
});
</script>
|
|
destroy
# |
None
|
None
|
Destroys the widget.
<template>
<JqxFormattedInput ref="myFormattedInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
const myFormattedInput = ref(null);
onMounted(() => {
myFormattedInput.value.destroy();
});
</script>
|
|
focus
# |
None
|
None
|
Focuses the widget.
<template>
<JqxFormattedInput ref="myFormattedInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
const myFormattedInput = ref(null);
onMounted(() => {
myFormattedInput.value.focus();
});
</script>
|
|
open
# |
None
|
None
|
Opens the jqxFormattedInput pop-up.
<template>
<JqxFormattedInput
ref="myFormattedInput"
:width="200"
:height="25"
:radix="'decimal'"
:value="190"
:spinButtons="true"
:dropDown="true"
>
</JqxFormattedInput>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
const myFormattedInput = ref(null);
onMounted(() => {
myFormattedInput.value.open();
setTimeout((_) => myFormattedInput.value.close(), 1000);
});
</script>
|
|
render
# |
None
|
None
|
Renders the widget.
<template>
<JqxFormattedInput ref="myFormattedInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
const myFormattedInput = ref(null);
onMounted(() => {
myFormattedInput.value.render();
});
</script>
|
|
refresh
# |
None
|
None
|
Refreshes the widget.
<template>
<JqxFormattedInput ref="myFormattedInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
const myFormattedInput = ref(null);
onMounted(() => {
myFormattedInput.value.refresh();
});
</script>
|
|
selectAll
# |
None
|
None
|
Selects the text in the input field.
<template>
<JqxFormattedInput ref="myFormattedInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
const myFormattedInput = ref(null);
onMounted(() => {
myFormattedInput.value.value = 123456789;
myFormattedInput.value.selectAll();
});
</script>
|
|
selectFirst
# |
None
|
None
|
Positions the caret in the beginning of the number in the input.
<template>
<JqxFormattedInput ref="myFormattedInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
const myFormattedInput = ref(null);
onMounted(() => {
myFormattedInput.value.value = 123456789;
myFormattedInput.value.selectFirst();
});
</script>
|
|
selectLast
# |
None
|
None
|
Positions the caret at the end of the number in the input.
<template>
<JqxFormattedInput ref="myFormattedInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
const myFormattedInput = ref(null);
onMounted(() => {
myFormattedInput.value.value = 123456789;
myFormattedInput.value.selectLast();
});
</script>
|
|
val
# |
value
|
String
|
Sets or gets the value.
<template>
<JqxFormattedInput ref="myFormattedInput" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxFormattedInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxformattedinput.vue';
const myFormattedInput = ref(null);
onMounted(() => {
const value = myFormattedInput.value.val();
});
</script>
|