Vue UI Components Documentation
The Vue DateTimeInput lets users type a date or time, or pick it from a drop-down calendar. This guide adds the Vue DateTimeInput (jqxDateTimeInput) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.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>
<label>Date Input</label>
<JqxDateTimeInput :width="300" :height="25"> </JqxDateTimeInput>
<br />
<label>Time Input</label>
<JqxDateTimeInput
:width="300"
:height="25"
:formatString="'T'"
:showTimeButton="true"
:showCalendarButton="false"
>
</JqxDateTimeInput>
<br />
<label>Date Time Input</label>
<JqxDateTimeInput :width="300" :height="25" :formatString="'F'" :showTimeButton="true">
</JqxDateTimeInput>
</div>
</template>
<script setup>
import JqxDateTimeInput from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxdatetimeinput.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 on blur when the value is changed .
<script setup>
function onChange(event) {
console.log(event.args);
}
</script>
<template>
<JqxDateTimeInput @change="onChange" />
</template>
Call methods through a template ref. For example, val: Gets or sets the jqxDateTimeInput's value.
<script setup>
import { ref, onMounted } from 'vue';
const myDateTimeInput = ref(null);
onMounted(() => {
const value = myDateTimeInput.value.val();
console.log(value);
});
</script>
<template>
<JqxDateTimeInput ref="myDateTimeInput" />
</template>
Every component also has setOptions({ … }) and getOptions('name').