Vue UI Components Documentation
The Vue Scheduler shows appointments in day, week, month, timeline and agenda views, with recurring appointments and resources. This guide adds the Vue Scheduler (jqxScheduler) to an app, then shows how to set its options, handle its events and call its methods.
jqwidgets-scriptsjqwidgets-scripts/jqwidgets-vue3/vue_jqxscheduler.vue 
In a Vue 3 project (to start one, see Getting started with Vue), add the package:
npm install jqwidgets-scripts
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscheduler.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>
<JqxScheduler
ref="myScheduler"
:width="width"
:height="600"
:source="dataAdapter"
:date="date"
:showLegend="true"
:view="'weekView'"
:appointmentDataFields="appointmentDataFields"
:resources="resources"
:views="views"
/>
</template>
<script setup>
import { onMounted, ref } from 'vue';
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue3/vue_jqxscheduler.vue';
const myScheduler = ref(null);
const generateAppointments = function () {
const appointments = new Array();
const appointment1 = {
id: 'id1',
description: 'George brings projector for presentations.',
location: '',
subject: 'Quarterly Project Review Meeting',
calendar: 'Room 1',
start: new Date(2026, 10, 18, 9, 0, 0),
end: new Date(2026, 10, 18, 16, 0, 0)
};
const appointment2 = {
id: 'id2',
description: '',
location: '',
subject: 'IT Group Mtg.',
calendar: 'Room 2',
start: new Date(2026, 10, 19, 10, 0, 0),
end: new Date(2026, 10, 19, 15, 0, 0)
};
const appointment3 = {
id: 'id3',
description: '',
location: '',
subject: 'Course Social Media',
calendar: 'Room 3',
start: new Date(2026, 10, 22, 11, 0, 0),
end: new Date(2026, 10, 22, 13, 0, 0)
};
const appointment4 = {
id: 'id4',
description: '',
location: '',
subject: 'New Projects Planning',
calendar: 'Room 2',
start: new Date(2026, 10, 18, 16, 0, 0),
end: new Date(2026, 10, 18, 18, 0, 0)
};
const appointment5 = {
id: 'id5',
description: '',
location: '',
subject: 'Interview with James',
calendar: 'Room 1',
start: new Date(2026, 10, 20, 15, 0, 0),
end: new Date(2026, 10, 20, 17, 0, 0)
};
const appointment6 = {
id: 'id6',
description: '',
location: '',
subject: 'Interview with Nancy',
calendar: 'Room 4',
start: new Date(2026, 10, 21, 14, 0, 0),
end: new Date(2026, 10, 21, 16, 0, 0)
};
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
appointments.push(appointment5);
appointments.push(appointment6);
return appointments;
};
let source = {
dataType: 'array',
dataFields: [
{ name: 'id', type: 'string' },
{ name: 'description', type: 'string' },
{ name: 'location', type: 'string' },
{ name: 'subject', type: 'string' },
{ name: 'calendar', type: 'string' },
{ name: 'start', type: 'date' },
{ name: 'end', type: 'date' }
],
id: 'id',
localData: generateAppointments()
};
let dataAdapter = new jqx.dataAdapter(source);
const width = ref('90%');
const date = ref(new jqx.date(2026, 11, 18));
const appointmentDataFields = ref({
from: 'start',
to: 'end',
id: 'id',
description: 'description',
location: 'location',
subject: 'subject',
resourceId: 'calendar'
});
const resources = ref({
colorScheme: 'scheme05',
dataField: 'calendar',
source: new jqx.dataAdapter(source)
});
const views = ref(['dayView', 'weekView', 'monthView']);
onMounted(() => {
myScheduler.value.ensureAppointmentVisible('id1');
});
</script>Options are attributes. Bind values from the script with :, for example :width="850".
Listen to an event with @ and its name. For example, scheduleraiResult: This event is triggered when an AI method completes.
<script setup>
function onScheduleraiResult(event) {
console.log(event.args);
}
</script>
<template>
<JqxScheduler @scheduleraiResult="onScheduleraiResult" />
</template>
Call methods through a template ref. For example, focus: Focuses the Scheduler.
<script setup>
import { ref, onMounted } from 'vue';
const myScheduler = ref(null);
onMounted(() => {
myScheduler.value.focus();
});
</script>
<template>
<JqxScheduler ref="myScheduler" />
</template>
Every component also has setOptions({ … }) and getOptions('name').