| Name | Type | Default |
|
animationType
# |
String
|
'slide'
|
Sets or gets the type of the animation.
Possible Values:
'fade'
'slide'
'none'
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :animationType="'fade'" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the animationType property. let animationType = myDateTimeInput.value.animationType;
|
|
allowNullDate
# |
Boolean
|
true
|
Determines whether Null is allowed as a value.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :allowNullDate="true" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
myDateTimeInput.value.val(null);
});
</script>
Get the allowNullDate property. let allowNullDate = myDateTimeInput.value.allowNullDate;
|
|
allowKeyboardDelete
# |
Boolean
|
true
|
Determines whether Backspace and Delete keys are handled by the widget.
<template>
<JqxDateTimeInput
ref="myDateTimeInput"
:width="250"
:height="30"
:allowKeyboardDelete="false"
/>
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the allowKeyboardDelete property. let allowKeyboardDelete = myDateTimeInput.value.allowKeyboardDelete;
|
|
clearString
# |
String
|
'Clear'
|
Sets or gets the 'Clear' string displayed when the 'showFooter' property is true.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :clearString="'Clear'" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the clearString property. let clearString = myDateTimeInput.value.clearString;
|
|
culture
# |
String
|
default
|
Sets or gets the jqxDateTimeInput's culture. The culture settings are contained within a file with the language code appended to the name, e.g. jquery.glob.de-DE.js for German. To set the culture, you need to include the jquery.glob.de-DE.js and set the culture property to the culture's name, e.g. 'de-DE'.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :culture="'de-DE'" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the culture property. let culture = myDateTimeInput.value.culture;
|
|
closeDelay
# |
Number
|
400
|
Specifies the animation duration of the popup calendar when it is going to be hidden.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :closeDelay="2000" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the closeDelay property. let closeDelay = myDateTimeInput.value.closeDelay;
|
|
closeCalendarAfterSelection
# |
Boolean
|
true
|
Sets or gets whether or not the popup calendar must be closed after selection.
<template>
<JqxDateTimeInput
ref="myDateTimeInput"
:width="250"
:height="30"
:closeCalendarAfterSelection="false"
/>
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the closeCalendarAfterSelection property. let closeCalendarAfterSelection = myDateTimeInput.value.closeCalendarAfterSelection;
|
|
dropDownHorizontalAlignment
# |
String
|
'left'
|
Sets the DropDown's alignment.
Possible Values:
'left'
right'
<template>
<JqxDateTimeInput
ref="myDateTimeInput"
:width="250"
:height="30"
:dropDownHorizontalAlignment="'right'"
/>
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the dropDownHorizontalAlignment property. let dropDownHorizontalAlignment = myDateTimeInput.value.dropDownHorizontalAlignment;
|
|
dropDownVerticalAlignment
# |
String
|
'bottom'
|
Sets or gets the DropDown's alignment.
Possible Values:
'top'
'bottom'
<template>
<JqxDateTimeInput
ref="myDateTimeInput"
style="margin-top: 250px"
:width="250"
:height="30"
:dropDownVerticalAlignment="'top'"
/>
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the dropDownVerticalAlignment property. let dropDownVerticalAlignment = myDateTimeInput.value.dropDownVerticalAlignment;
|
|
disabled
# |
Boolean
|
false
|
Determines whether the widget is disabled.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :disabled="true" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the disabled property. let disabled = myDateTimeInput.value.disabled;
|
|
enableBrowserBoundsDetection
# |
Boolean
|
false
|
When this property is set to true, the popup calendar may open above the input, if there's not enough space below the DateTimeInput.
<template>
<JqxDateTimeInput
ref="myDateTimeInput"
:width="250"
:height="30"
:enableBrowserBoundsDetection="true"
/>
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the enableBrowserBoundsDetection property. let enableBrowserBoundsDetection = myDateTimeInput.value.enableBrowserBoundsDetection;
|
|
enableAbsoluteSelection
# |
Boolean
|
false
|
This setting enables the user to select only one symbol at a time when typing into the text input field.
<template>
<JqxDateTimeInput
ref="myDateTimeInput"
:width="250"
:height="30"
:enableAbsoluteSelection="true"
/>
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the enableAbsoluteSelection property. let enableAbsoluteSelection = myDateTimeInput.value.enableAbsoluteSelection;
|
|
editMode
# |
String
|
default
|
Sets the edit mode of the component. Possible values: 'default', 'full'. In 'default' mode, value is always displayed and is validated on each key press. In 'full' mode, when the input is empty (value is null), its value can be freely edited. On blur or when Enter is pressed, the value is validated and if it is valid, editing becomes the same as in editMode: 'default'. If the value is once again set to null (by pressing Delete, Ctrl + A and Delete, or 'Clear'), full edit can again be entered. Full edit also takes into consideration the value of the 'yearCutoff' property. This means that if yearCutoff is 1926 and 01/01/20 is entered, 20 will be interpreted as 2020; if 01/01/54 is entered, 54 will be interpreted as 1954.
<template>
<JqxDateTimeInput ref="myDateTimeInput"
:width="250" :height="30"
/>
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
|
|
firstDayOfWeek
# |
Number
|
0
|
Sets or gets which day to display in the first day column. By default the calendar displays 'Sunday' as first day.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :firstDayOfWeek="3" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the firstDayOfWeek property. let firstDayOfWeek = myDateTimeInput.value.firstDayOfWeek;
|
|
formatString
# |
String
|
dd/MM/yyyy
|
Sets or gets the date time input format of the date.
Possible Values:
'd'-the day of the month
'dd'-the day of the month
'ddd'-the abbreviated name of the day of the week
'dddd'-the full name of the day of the week
'h'-the hour, using a 12-hour clock from 1 to 12
'hh'-the hour, using a 12-hour clock from 01 to 12
'H'-the hour, using a 24-hour clock from 0 to 23
'HH'-the hour, using a 24-hour clock from 00 to 23
'm'-the minute, from 0 through 59
'mm'-the minutes,from 00 though59
'M'-the month, from 1 through 12;
'MM'-the month, from 01 through 12
'MMM'-the abbreviated name of the month
'MMMM'-the full name of the month
's'-the second, from 0 through 59
'ss'-the second, from 00 through 59
't'-the first character of the AM/PM designator
'tt'-the AM/PM designator
'y'-the year, from 0 to 99
'yy'-the year, from 00 to 99
'yyy'-the year, with a minimum of three digits
'yyyy'-the year as a four-digit number
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :formatString="'d'" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the formatString property. let formatString = myDateTimeInput.value.formatString;
|
|
height
# |
Number | String
|
null
|
Sets or gets the height of the jqxDateTimeInput widget.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the height property. let height = myDateTimeInput.value.height;
|
|
min
# |
Date
|
Date(1900, 1, 1)
|
Sets or gets the jqxDateTimeInput's minimum date.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :min="min" :max="max" />
</template>
<script setup>
import { ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const min = ref(new Date(2024, 11, 30));
const max = ref(new Date(2025, 11, 30));
</script>
Get the min property. let min = myDateTimeInput.value.min;
|
|
max
# |
Date
|
Date(2100, 1, 1)
|
Sets or gets the jqxDateTimeInput's maximum date.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :min="min" :max="max" />
</template>
<script setup>
import { ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const min = ref(new Date(2024, 11, 30));
const max = ref(new Date(2025, 11, 30));
</script>
Get the max property. let max = myDateTimeInput.value.max;
|
|
openDelay
# |
Number
|
350
|
Specifies the animation duration of the popup calendar when it is going to be displayed.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :openDelay="2000" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the openDelay property. let openDelay = myDateTimeInput.value.openDelay;
|
|
placeHolder
# |
String
|
""
|
Determines the widget's place holder displayed when the widget's value is null.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :placeHolder="'Null Value'" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the placeHolder property. let placeHolder = myDateTimeInput.value.placeHolder;
|
Sets or gets the popup's z-index.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :popupZIndex="99999" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the popupZIndex property. let popupZIndex = myDateTimeInput.value.popupZIndex;
|
|
rtl
# |
Boolean
|
false
|
Sets or gets a value indicating whether widget's elements are aligned to support locales using right-to-left fonts.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :rtl="true" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the rtl property. let rtl = myDateTimeInput.value.rtl;
|
|
readonly
# |
Boolean
|
false
|
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :readonly="true" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
|
Sets or gets a value indicating whether the dropdown calendar's footer is displayed.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :showFooter="true" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the showFooter property. let showFooter = myDateTimeInput.value.showFooter;
|
|
selectionMode
# |
String
|
'default'
|
Sets or gets the dropdown calendar's selection mode.
Possible Values:
'none'
'default'
'range'
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :selectionMode="'range'" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the selectionMode property. let selectionMode = myDateTimeInput.value.selectionMode;
|
|
showWeekNumbers
# |
Boolean
|
true
|
Sets or gets a value whether the week`s numbers are displayed.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :showWeekNumbers="false" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the showWeekNumbers property. let showWeekNumbers = myDateTimeInput.value.showWeekNumbers;
|
|
showTimeButton
# |
Boolean
|
false
|
Determines whether the time button is visible.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :showTimeButton="true" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the showTimeButton property. let showTimeButton = myDateTimeInput.value.showTimeButton;
|
|
showCalendarButton
# |
Boolean
|
true
|
Determines whether the calendar button is visible.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :showCalendarButton="false" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the showCalendarButton property. let showCalendarButton = myDateTimeInput.value.showCalendarButton;
|
|
showDeleteButton
# |
Boolean
|
false
|
Determines whether the delete button is visible.
<template>
<JqxDateTimeInput ref="myDateTimeInput"
:width="250" :height="30" :showDeleteButton="true"
/>
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the showDeleteButton property. let showDeleteButton = myDateTimeInput.value.showDeleteButton;
|
|
theme
# |
String
|
''
|
Sets the widget's theme.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :theme="'material'" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the theme property. let theme = myDateTimeInput.value.theme;
|
|
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>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :template="'primary'" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the template property. let template = myDateTimeInput.value.template;
|
|
textAlign
# |
String
|
left
|
Sets or gets the position of the text.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :textAlign="'right'" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the textAlign property. let textAlign = myDateTimeInput.value.textAlign;
|
|
todayString
# |
String
|
'Today'
|
Sets or gets the 'Today' string displayed in the dropdown Calendar when the 'showFooter' property is true.
<template>
<JqxDateTimeInput
ref="myDateTimeInput"
:width="250"
:height="30"
:todayString="'Today'"
:showFooter="true"
/>
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the todayString property. let todayString = myDateTimeInput.value.todayString;
|
|
value
# |
Date
|
Today's Date
|
Sets or gets the jqxDateTimeInput value.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" :value="value" />
</template>
<script setup>
import { ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const value = ref(new Date(2026, 0, 8));
</script>
Get the value property. let value = myDateTimeInput.value.value;
|
|
width
# |
Number | String
|
null
|
Sets or gets the width of the jqxDateTimeInput widget.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
Get the width property. let width = myDateTimeInput.value.width;
|
|
yearCutoff
# |
Number
|
2000
|
Works with editMode='full'. if yearCutoff is 1926 and 01/01/20 is entered, 20 will be interpreted as 2020; if 01/01/54 is entered, 54 will be interpreted as 1954.
<template>
<JqxDateTimeInput ref="myDateTimeInput"
:width="250" :height="30"
/>
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
</script>
|
|
|
|
change
# |
Event
|
|
This event is triggered on blur when the value is changed .
Code examples #
Bind to the change event of jqxDateTimeInput.
<template>
<JqxDateTimeInput ref="myDateTimeInput" @change="onChange($event)" :width="250" :height="30" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
function onChange(event) {
alert('do something...');
}
</script>
|
|
close
# |
Event
|
|
This event is triggered when the popup calendar is closed.
Code examples #
Bind to the close event of jqxDateTimeInput.
<template>
<JqxDateTimeInput ref="myDateTimeInput" @close="onClose($event)" :width="250" :height="30" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
function onClose(event) {
alert('do something...');
}
</script>
|
|
open
# |
Event
|
|
This event is triggered when the popup calendar is opened.
Code examples #
Bind to the open event of jqxDateTimeInput.
<template>
<JqxDateTimeInput ref="myDateTimeInput" @open="onOpen($event)" :width="250" :height="30" />
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
function onOpen(event) {
alert('do something...');
}
</script>
|
|
textchanged
# |
Event
|
|
This event is triggered when the text is changed.
Code examples #
Bind to the textchanged event of jqxDateTimeInput.
<template>
<JqxDateTimeInput
ref="myDateTimeInput"
@textchanged="onTextchanged($event)"
:width="250"
:height="30"
/>
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
function onTextchanged(event) {
alert('do something...');
}
</script>
|
|
valueChanged
# |
Event
|
|
This event is triggered when the value is changed.
Code examples #
Bind to the valueChanged event of jqxDateTimeInput.
<template>
<JqxDateTimeInput
ref="myDateTimeInput"
@valueChanged="onValueChanged($event)"
:width="250"
:height="30"
/>
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
function onValueChanged(event) {
alert('do something...');
}
</script>
|
|
|
| Name | Arguments | Return Type |
|
close
# |
None
|
None
|
After calling this method, the popup calendar will be hidden.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
myDateTimeInput.value.open();
setTimeout(() => {
myDateTimeInput.value.close();
}, 1500);
});
</script>
|
|
destroy
# |
None
|
None
|
Destroys the widget.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
myDateTimeInput.value.destroy();
});
</script>
|
|
focus
# |
None
|
None
|
Focuses the widget.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
myDateTimeInput.value.focus();
});
</script>
|
|
getRange
# |
date
|
Object
|
Gets the selection range when the selectionMode is set to 'range'. The returned value is an object with "from" and "to" fields. Each of the fields is a JavaScript Date object.
<template>
<div>
<JqxDateTimeInput
ref="myDateTimeInput"
:width="250"
:height="30"
:selectionMode="'range'"
/>
<br />
<JqxButton @click="onClick($event)" :width="60" :height="20">Click</JqxButton>
</div>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxbuttons.vue';
const myDateTimeInput = ref(null);
function onClick(event) {
const value = myDateTimeInput.value.getRange();
console.log(value);
}
onMounted(() => {
myDateTimeInput.value.setRange(new Date(2026, 9, 16), new Date(2026, 9, 20));
});
</script>
|
|
getText
# |
None
|
String
|
Returns the input field's text.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
const value = myDateTimeInput.value.getText();
});
</script>
|
|
getDate
# |
None
|
Date
|
When the getDate method is called, the user gets the current date. The returned value is JavaScript Date object.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
const value = myDateTimeInput.value.getDate();
});
</script>
|
|
getMaxDate
# |
None
|
Date
|
When the setMaxDate method is called, the user gets the maximum navigation date. The returned value is JavaScript Date object.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
const value = myDateTimeInput.value.getMaxDate();
});
</script>
|
|
getMinDate
# |
None
|
Date
|
When the getMinDate method is called, the user gets the minimum navigation date. The returned value is JavaScript Date object.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
const value = myDateTimeInput.value.getMinDate();
});
</script>
|
|
open
# |
None
|
None
|
After calling this method, the popup calendar will be displayed.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
myDateTimeInput.value.open();
});
</script>
|
|
setRange
# |
date, date2
|
None
|
Sets the selection range when the selectionMode is set to 'range'. The required parameters are JavaScript Date objects.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
myDateTimeInput.value.selectionMode = 'range';
myDateTimeInput.value.setRange(new Date(2026, 9, 16), new Date(2026, 9, 18));
});
</script>
|
|
setMinDate
# |
date
|
None
|
When the setMinDate method is called, the user sets the minimum date to which it is possible to navigate.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
myDateTimeInput.value.setMinDate(new Date(2026, 9, 16));
});
</script>
|
|
setMaxDate
# |
date
|
None
|
When the setMaxDate method is called, the user sets the maximum date to which it is possible to navigate.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
myDateTimeInput.value.setMaxDate(new Date(2026, 9, 16));
});
</script>
|
|
setDate
# |
date
|
None
|
When the setDate method is called, the user sets the date. The required parameter is a JavaScript Date object.
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
myDateTimeInput.value.setDate(new Date(2026, 9, 16));
});
</script>
|
|
val
# |
value, value2
|
Date/string
|
Gets or sets the jqxDateTimeInput's value. Set value:
this.$refs.myDateTimeInput.val(new Date(2011, 10, 24));
Get value:
let date = this.$refs.myDateTimeInput.val();
<template>
<JqxDateTimeInput ref="myDateTimeInput" :width="250" :height="30" />
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue';
const myDateTimeInput = ref(null);
onMounted(() => {
const value = myDateTimeInput.value.val();
});
</script>
|