| Name | Type | Default |
|---|---|---|
| appointmentOpacity | Number | 0.7 |
|
Sets or gets the appointments opacity. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :appointmentOpacity="0.7"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| appointmentsMinHeight | Number | 18 |
|
Sets or gets the minimum height of appointments in the all day area, month view and timeline views. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'monthView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :appointmentsMinHeight="50"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| appointmentDataFields | Object | { allDay: "allDay", background: "background", borderColor: "borderColor", color: "color", description: "description", draggable: "draggable", from: "from", hidden: "hidden", id: "id", location: "location", recurrencePattern: "recurrencePattern", recurrenceException: "recurrenceException", resizable: "resizable", resourceId: "resourceId", readOnly: "readOnly", subject: "subject", style: "style", status: "status", to: "to", tooltip: "tooltip", timeZone: "timeZone" } |
|
Sets or gets the appointments data fields. A data field should match a field defined in the dataAdapter's source object. For example: If your have a data field called "start" in your source object, you should add 'from: "start"' in the appointmentDataFields definition.
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| appointmentTooltips | Boolean | true |
|
Sets or gets whether Scheduler appointments are with tooltips enabled. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :appointmentTooltips="false"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| columnsHeight | Number | 30 |
|
Sets or gets the Schedulers' columns height. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :columnsHeight="50"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| contextMenu | Boolean | true |
|
Sets or gets whether the Scheduler's context menu is enabled. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :contextMenu="false"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| contextMenuOpen | Function | null |
|
Sets or gets a function called when the context menu is opened. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :contextMenuOpen="contextMenuOpen"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
contextMenuOpen: function (menu, appointment, event) {
alert('Context menu opened!');
}
}
}
</script>
|
||
| contextMenuClose | Function | null |
|
Sets or gets a function called when the context menu is closed. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :contextMenuClose="contextMenuClose"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
contextMenuClose: function (menu, appointment, event) {
alert('Context menu closed!');
}
}
}
</script>
|
||
| contextMenuItemClick | Function | null |
|
Sets or gets a function called when a context menu item is clicked. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :contextMenuItemClick="contextMenuItemClick"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
contextMenuItemClick: function (menu, appointment, event) {
alert('Context menu item click!');
}
}
}
</script>
|
||
| contextMenuCreate | Function | null |
|
Sets or gets a function called when the context menu is created. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :contextMenuCreate="contextMenuCreate"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
contextMenuCreate: function (menu, settings) {
alert('Context menu created!');
}
}
}
</script>
|
||
| changedAppointments | Array | [] |
|
Gets an array with newly added, deleted or updated appointments. Each element in the Array is an object which has:
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :width="600" :ready="ready"/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
let changedAppointments = this.$refs.myScheduler.changedAppointments;
console.log(changedAppointments);
}
}
</script>
Get the let changedAppointments = this.$refs.myScheduler.changedAppointments; |
||
| disabled | Boolean | false |
|
Sets or gets whether the Scheduler is disabled. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :disabled="true"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| date | JqxDate | new $.jqx.date('todayDate') |
|
Sets or gets the Scheduler's Date. To learn how to use jqxDate, please look at the Scheduler's Getting Started help topic. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| dayNameFormat | String | 'full' |
|
Sets or gets the Schedulers' columns day formatting. Possible values: 'shortest', 'firstTwoLetters', 'firstLetter', 'abbr', 'full'. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :dayNameFormat="'abbr'"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| enableHover | Boolean | true |
|
Sets or gets whether cells hover is enabled. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :enableHover="false"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| editDialog | Boolean | true |
|
Sets or gets whether Edit Dialog is enabled. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :editDialog="false"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| editDialogDateTimeFormatString | String | "dd/MM/yyyy hh:mm tt" |
|
Sets or gets the DateTimeInput's formatString in the Scheduler's Edit Dialog when the appointment is not allDay appointment. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :editDialogDateTimeFormatString="'dd-MM-yyyy HH:mm'"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| editDialogDateFormatString | String | "dd/MM/yyyy" |
|
Sets or gets the DateTimeInput's formatString in the Scheduler's Edit Dialog when the appointment is allDay appointment. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :editDialogDateFormatString="'dd/MM/yyyy'"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| editDialogOpen | Function | null |
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :editDialogOpen="editDialogOpen"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
editDialogOpen: function (dialog, fields, editAppointment) {
alert('Edit dialog opened!');
}
}
}
</script>
|
||
| editDialogCreate | Function | null |
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :editDialogCreate="editDialogCreate"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
editDialogCreate: function (dialog, fields, editAppointment) {
alert('Edit dialog created!');
}
}
}
</script>
|
||
| editDialogKeyDown | Function | null |
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :editDialogKeyDown="editDialogKeyDown"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
editDialogKeyDown: function (dialog, fields, editAppointment, event) {
alert('Edit dialog key down!');
}
}
}
</script>
|
||
| editDialogClose | Function | null |
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :editDialogClose="editDialogClose"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
editDialogClose: function (dialog, fields, editAppointment) {
alert('Edit dialog closed!');
}
}
}
</script>
|
||
| exportSettings | Object | { serverURL: null, characterSet: null, fileName: "jqxScheduler", dateTimeFormatString: "S", resourcesInMultipleICSFiles: false} |
|
Determines the Data Export settings used by jqxScheduler when
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :exportSettings="exportSettings"
:ready="ready"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
exportSettings: {
serverURL: null,
characterSet: null,
fileName: "jqxScheduler"
},
ready: () => {
this.$refs.myScheduler.exportData('pdf')
},
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| height | Number | String | 600 |
|
Sets or gets the Scheduler's height. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :height="600"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| legendPosition | String | "bottom" |
|
Sets or gets the Scheduler's legendPosition. Possible values: "top" and "bottom". <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :legendPosition="'top'"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| legendHeight | Number | 34 |
|
Sets or gets the Scheduler's legend height. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :legendHeight="40"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| localization | Object | |
|
Sets or gets the Scheduler's localization.
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :localization="localization"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
localization: {
days: {
names: ["Sonntag", "Montag", "Dienstag", "Mittwoch", "Donnerstag", "Freitag", "Samstag"]
}
},
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| min | JqxDate | new $.jqx.date(0) |
|
Sets or gets the Scheduler's minimum navigation date. To learn how to use jqxDate, please look at the Scheduler's Getting Started help topic. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :min="min"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
min: new jqx.date(2018, 11, 12),
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| max | JqxDate | new $.jqx.date(9999, 12, 31), |
|
Sets or gets the Scheduler's maximum navigation date. To learn how to use jqxDate, please look at the Scheduler's Getting Started help topic. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :max="max"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
max: new jqx.date(2018, 12, 1),
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| ready | Function | null |
|
Sets a function called when the Scheduler is rendered and ready for usage. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :ready="ready"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
ready: function () {
alert('ready');
}
}
}
</script>
|
||
| renderAppointment | Function | null |
|
Sets a function called when the Scheduler is rendering its appointments. The function has one parameter which is object with the following members:
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :renderAppointment="renderAppointment"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
renderAppointment: function (data) {
alert('render appointment');
}
}
}
</script>
|
||
| rendering | Function | null |
|
Sets a function called by the Scheduler when the Scheduler's rendering function is called. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :rendering="rendering"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
rendering: function () {
alert('rendering');
}
}
}
</script>
|
||
| rendered | Function | null |
|
Sets a function called by the Scheduler when the Scheduler is rendered. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :rendered="rendered"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
rendered: function () {
alert('rendered');
}
}
}
</script>
|
||
| rtl | Boolean | false |
|
Sets or gets whether the Scheduler is displayed with Right to Left layout. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :rtl="true"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| resources | Object | null |
|
Sets or gets the Scheduler's resource object. The object can have the following members:
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| rowsHeight | Number | 27 |
|
Sets or gets the Scheduler rows height. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :rowsHeight="40"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| showToolbar | Boolean | true |
|
Sets or gets whether the Scheduler's navigation toolbar is displayed. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :showToolbar="false"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| showLegend | Boolean | false |
|
Sets or gets whether the Scheduler's legend bar is displayed. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| scrollBarSize | Number | 15 |
|
Sets or gets the scrollbars size. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :scrollBarSize="20"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| source | Object | null |
|
Sets or gets the Scheduler appointments data source. The property should point to dataAdapter instance. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| statuses | Object | { free: "white", tentative: "tentative", busy: "transparent", outOfOffice: "#800080" } |
|
Sets or gets the Scheduler appointments statuses. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :statuses="statuses" />
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
statuses: {
free: 'green',
tentative: 'tentative',
busy: 'transparent',
doNotDisturb: 'orange',
outOfOffice: '#800080'
},
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar",
status: "status"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
status: 'free',
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
status: 'tentative',
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
status: 'doNotDisturb',
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: 'status', type: 'string' },
{ name: 'start', type: 'date' },
{ name: 'end', type: 'date' }
],
id: 'id',
localData: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| touchRowsHeight | Number | 37 |
|
Sets or gets the Scheduler rows height on touch device. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :touchRowsHeight="40"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| theme | String | '' |
|
Sets the widget's theme.
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :theme="'material'"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| touchAppointmentsMinHeight | Number | 27 |
|
Sets or gets the minimum height of appointments on touch devices in the all day area, month view and timeline views. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :touchAppointmentsMinHeight="40"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| touchScrollBarSize | Number | 18 |
|
Sets or gets the scrollbars size on touch devices. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :touchScrollBarSize="20"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| timeZone | String | '' |
|
Sets or gets the Scheduler's Time Zone. Possible values:
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :timeZone="'UTC'"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| touchDayNameFormat | String | 'abbr' |
|
Sets or gets the Schedulers' columns day formatting. Possible values: 'shortest', 'firstTwoLetters', 'firstLetter', 'abbr', 'full'. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :touchDayNameFormat="'abbr'"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| toolBarRangeFormat | String | 'dd MMMM yyyy' |
|
Sets or gets the toolbar's date format. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :toolBarRangeFormat="'dd MM yyyy'"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| toolBarRangeFormatAbbr | String | 'dd MM yyyy' |
|
Sets or gets the toolbar's date format when the Scheduler's width is not enough for displaying the full format. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :toolBarRangeFormatAbbr="'dd MM yy'"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| toolbarHeight | Number | 54 |
|
Sets or gets the Scheduler toolbar's height. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :toolbarHeight="60"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| views | Array | ['dayView', 'weekView', 'monthView'] |
|
Sets or gets the Scheduler's views. Each view in the Array can be string or object. strings are: 'dayView', 'weekView', 'monthView', 'timelineDayView', 'timelineWeekView', 'timelineMonthView', 'agendaView'. If it is an object it can have the following members:
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| view | Number | String | |
|
Sets or gets the Scheduler's view. Possible vales: 'dayView', 'weekView', 'monthView', 'timelineDayView', 'timelineWeekView' and 'timelineMonthView' or the view's Index in the views object. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| width | Number | String | 800 |
|
Sets or gets the Scheduler's width. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" :width="600"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
Events |
||
| appointmentChange | Event | |
|
This event is triggered when an appointment is changed. event.args contains the event's arguments. This event has one argument: appointment - object which has the appointmentDataFields. See appointmentDataFields property. Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @appointmentChange="onAppointmentChange($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onAppointmentChange: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| appointmentClick | Event | |
|
This event is triggered when an appointment is clicked. event.args contains the event's arguments. This event has one argument: appointment - object which has the appointmentDataFields. See appointmentDataFields property. Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @appointmentClick="onAppointmentClick($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onAppointmentClick: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| appointmentDoubleClick | Event | |
|
This event is triggered when an appointment is double clicked. event.args contains the event's arguments. This event has one argument: appointment - object which has the appointmentDataFields. See appointmentDataFields property. Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @appointmentDoubleClick="onAppointmentDoubleClick($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onAppointmentDoubleClick: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| appointmentDelete | Event | |
|
This event is triggered when an appointment is deleted. event.args contains the event's arguments. This event has one argument: appointment - object which has the appointmentDataFields. See appointmentDataFields property. Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @appointmentDelete="onAppointmentDelete($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onAppointmentDelete: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| appointmentAdd | Event | |
|
This event is triggered when an appointment is added. event.args contains the event's arguments. This event has one argument: appointment - object which has the appointmentDataFields. See appointmentDataFields property. Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @appointmentAdd="onAppointmentAdd($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onAppointmentAdd: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| bindingComplete | Event | |
|
This event is triggered when the binding is completed. Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @bindingComplete="onBindingComplete($event)"
:date="date" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.source = this.source;
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onBindingComplete: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| cellClick | Event | |
|
This event is triggered when a cell is clicked. event.args contains the event's arguments. This event has two arguments: cell - TD HTML Element. date - jqxDate object. Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @cellClick="onCellClick($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onCellClick: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| cellDoubleClick | Event | |
|
This event is triggered when a cell is double clicked. event.args contains the event's arguments. This event has two arguments: cell - TD HTML Element. date - jqxDate object. Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @cellDoubleClick="onCellDoubleClick($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onCellDoubleClick: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| contextMenuOpen | Event | |
|
This event is triggered when the context menu is opened. Event Arguments:
Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @contextMenuOpen="onContextMenuOpen($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onContextMenuOpen: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| contextMenuClose | Event | |
|
This event is triggered when the context menu is closed. Event Arguments:
Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @contextMenuClose="onContextMenuClose($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onContextMenuClose: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| contextMenuItemClick | Event | |
|
This event is triggered when the context menu item is clicked. Event Arguments:
Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @contextMenuItemClick="onContextMenuItemClick($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onContextMenuItemClick: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| contextMenuCreate | Event | |
|
This event is triggered when the context menu item is created. Event Arguments:
Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @contextMenuCreate="onContextMenuCreate($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onContextMenuCreate: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| dateChange | Event | |
|
This event is triggered when the date is changed. This event has three arguments: date, from and to - jqxDate objects. Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @dateChange="onDateChange($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onDateChange: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| editRecurrenceDialogOpen | Event | |
|
This event is triggered when the recurrence dialog is opened. Event Arguments:
Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @editRecurrenceDialogOpen="onEditRecurrenceDialogOpen($event)"
:width="getWidth" :height="600" :source="dataAdapter" :date="date" :view="'weekView'" :showLegend="true"
:appointmentDataFields="appointmentDataFields" :views="views" />
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue'
export default {
components: {
JqxScheduler
},
data: function () {
return {
getWidth: getWidth('scheduler'),
date: new jqx.date(2016, 11, 23),
appointmentDataFields:
{
from: 'from',
to: 'to',
id: 'id',
description: 'description',
location: 'place',
style: 'style',
subject: 'subject',
resourceId: 'calendar',
recurrencePattern: 'recurrenceRule',
recurrenceException: 'recurrenceException'
},
views:
[
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
const generateAppointments = function () {
const appointments = new Array();
const appointment1 = {
id: 'id4',
description: '',
style: '#AA4643',
location: '',
subject: 'New Projects Planning',
calendar: 'Room 2',
from: new Date(2016, 10, 22, 8, 0, 0),
to: new Date(2016, 10, 22, 13, 0, 0)
}
const appointment2 = {
id: 'id5',
description: '',
style: '#89A54E',
location: '',
subject: 'Interview with James',
calendar: 'Room 1',
from: new Date(2016, 10, 25, 13, 0, 0),
to: new Date(2016, 10, 25, 15, 0, 0)
}
const appointment3 = {
id: 'id6',
description: '',
style: '#71588F',
location: '',
subject: 'Interview with Nancy',
calendar: 'Room 2',
from: new Date(2016, 10, 26, 14, 0, 0),
to: new Date(2016, 10, 26, 16, 0, 0)
}
const appointment4 = {
id: 'id7',
description: '',
style: '#307DD7',
location: '',
subject: 'Daily Meeting',
calendar: 'Room 1',
recurrenceRule: 'FREQ=DAILY;',
recurrenceException: '2016-11-24 09:00:00,2016-11-26 12:00:00',
from: new Date(2016, 10, 23, 10, 0, 0),
to: new Date(2016, 10, 23, 11, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
return appointments;
}
this.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: 'recurrenceRule', type: 'string' },
{ name: 'recurrenceException', type: 'string' },
{ name: 'style', type: 'string' },
{ name: 'from', type: 'date' },
{ name: 'to', type: 'date' }
],
id: 'id',
localData: generateAppointments()
};
this.dataAdapter = new jqx.dataAdapter(this.source);
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id7');
},
methods: {
onEditRecurrenceDialogOpen: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| editRecurrenceDialogClose | Event | |
|
This event is triggered when the recurrence dialog is closed. Event Arguments:
Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @editRecurrenceDialogClose="onEditRecurrenceDialogClose($event)"
:width="getWidth" :height="600" :source="dataAdapter" :date="date" :view="'weekView'" :showLegend="true"
:appointmentDataFields="appointmentDataFields" :views="views" />
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue'
export default {
components: {
JqxScheduler
},
data: function () {
return {
getWidth: getWidth('scheduler'),
date: new jqx.date(2016, 11, 23),
appointmentDataFields:
{
from: 'from',
to: 'to',
id: 'id',
description: 'description',
location: 'place',
style: 'style',
subject: 'subject',
resourceId: 'calendar',
recurrencePattern: 'recurrenceRule',
recurrenceException: 'recurrenceException'
},
views:
[
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
const generateAppointments = function () {
const appointments = new Array();
const appointment1 = {
id: 'id4',
description: '',
style: '#AA4643',
location: '',
subject: 'New Projects Planning',
calendar: 'Room 2',
from: new Date(2016, 10, 22, 8, 0, 0),
to: new Date(2016, 10, 22, 13, 0, 0)
}
const appointment2 = {
id: 'id5',
description: '',
style: '#89A54E',
location: '',
subject: 'Interview with James',
calendar: 'Room 1',
from: new Date(2016, 10, 25, 13, 0, 0),
to: new Date(2016, 10, 25, 15, 0, 0)
}
const appointment3 = {
id: 'id6',
description: '',
style: '#71588F',
location: '',
subject: 'Interview with Nancy',
calendar: 'Room 2',
from: new Date(2016, 10, 26, 14, 0, 0),
to: new Date(2016, 10, 26, 16, 0, 0)
}
const appointment4 = {
id: 'id7',
description: '',
style: '#307DD7',
location: '',
subject: 'Daily Meeting',
calendar: 'Room 1',
recurrenceRule: 'FREQ=DAILY;',
recurrenceException: '2016-11-24 09:00:00,2016-11-26 12:00:00',
from: new Date(2016, 10, 23, 10, 0, 0),
to: new Date(2016, 10, 23, 11, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
appointments.push(appointment4);
return appointments;
}
this.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: 'recurrenceRule', type: 'string' },
{ name: 'recurrenceException', type: 'string' },
{ name: 'style', type: 'string' },
{ name: 'from', type: 'date' },
{ name: 'to', type: 'date' }
],
id: 'id',
localData: generateAppointments()
};
this.dataAdapter = new jqx.dataAdapter(this.source);
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id7');
},
methods: {
onEditRecurrenceDialogClose: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| editDialogCreate | Event | |
|
This event is triggered when the edit dialog is created. Event Arguments:
Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @editDialogCreate="onEditDialogCreate($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onEditDialogCreate: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| editDialogOpen | Event | |
|
This event is triggered when the edit dialog is opened. Event Arguments:
Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @editDialogOpen="onEditDialogOpen($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onEditDialogOpen: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| editDialogClose | Event | |
|
This event is triggered when the edit dialog is closed. Event Arguments:
Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @editDialogClose="onEditDialogClose($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onEditDialogClose: function (event) {
alert('do something...');
}
}
}
</script>
|
||
| viewChange | Event | |
|
This event is triggered when the view type is changed. This event has five arguments: date, from and to - jqxDate objects, oldViewType and newViewType - strings. Code examples
Bind to the
<template>
<JqxScheduler ref="myScheduler" @viewChange="onViewChange($event)"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
onViewChange: function (event) {
alert('do something...');
}
}
}
</script>
|
||
Methods |
||
| Name | Arguments | Return Type |
| addAppointment | item | None |
|
Adds a new appointment. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
let appointment1 = {
id: "id1",
description: "",
subject: "New appointment",
calendar: "Room 1",
start: new Date(2018, 10, 23, 9, 0, 0),
end: new Date(2018, 10, 23, 16, 0, 0)
}
this.$refs.myScheduler.addAppointment(appointment1);
}
}
</script>
|
||
| beginAppointmentsUpdate | None | None |
|
Begins an update process and stops the Scheduler's rendering and appointments rendering. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
this.$refs.myScheduler.beginAppointmentsUpdate();
this.$refs.myScheduler.setAppointmentProperty('id1', 'borderColor', 'red');
this.$refs.myScheduler.endAppointmentsUpdate();
}
}
</script>
|
||
| clearAppointmentsSelection | None | None |
|
Clears the appointments selection. <template>
<div>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
<JqxButton @click="select()">Select</JqxButton>
<JqxButton @click="unselect()">Unselect</JqxButton>
</div>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue';
export default {
components: {
JqxScheduler,
JqxButton
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
select: function () {
this.$refs.myScheduler.selectAppointment('id1');
},
unselect: function () {
this.$refs.myScheduler.clearAppointmentsSelection();
}
}
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 20px;
margin-right: 20px;
}
</style>
|
||
| clearSelection | None | None |
|
Clears cells selection. <template>
<div>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
<JqxButton style="margin-top:20px;" :width="150" @click="clearSelection()">Clear Cells Selection</JqxButton>
</div>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue';
export default {
components: {
JqxScheduler,
JqxButton
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
clearSelection: function () {
this.$refs.myScheduler.clearSelection();
}
}
}
</script>
|
||
| closeMenu | None | None |
|
Closes the context menu. <template>
<div>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
<JqxButton @click="open()">Open Menu</JqxButton>
<JqxButton @click="close()">Close Menu</JqxButton>
</div>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue';
export default {
components: {
JqxScheduler,
JqxButton
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
open: function () {
this.$refs.myScheduler.openMenu(200, 200);
},
close: function () {
this.$refs.myScheduler.closeMenu();
}
}
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 20px;
margin-right: 20px;
}
</style>
|
||
| closeDialog | None | None |
|
Closes the edit dialog. <template>
<div>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
<JqxButton @click="open()">Open Menu</JqxButton>
<JqxButton @click="close()">Close Menu</JqxButton>
</div>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue';
export default {
components: {
JqxScheduler,
JqxButton
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
open: function () {
this.$refs.myScheduler.openDialog(10, 20);
},
close: function () {
this.$refs.myScheduler.closeDialog();
}
}
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 20px;
margin-right: 20px;
}
</style>
|
||
| deleteAppointment | appointmenId | None |
|
Deletes an appointment. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
this.$refs.myScheduler.deleteAppointment('id1');
}
}
</script>
|
||
| destroy | None | None |
|
Destroys the Scheduler and removes it from the DOM. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
this.$refs.myScheduler.destroy();
}
}
</script>
|
||
| endAppointmentsUpdate | None | None |
|
Ends the update process and resumes the Scheduler's rendering. The method works together with the beginAppointmentsUpdate. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
this.$refs.myScheduler.beginAppointmentsUpdate();
this.$refs.myScheduler.setAppointmentProperty('id1', 'borderColor', 'red');
this.$refs.myScheduler.endAppointmentsUpdate();
}
}
</script>
|
||
| ensureAppointmentVisible | id | None |
|
Scrolls to an appointment if it is out of the visible area. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
}
}
</script>
|
||
| ensureVisible | item, resourceId | None |
|
Scrolls to a Date. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureVisible(new jqx.date(2018, 12, 24));
}
}
</script>
|
||
| exportData | format | None |
|
Exports jqxScheduler's data to ICS, Excel, HTML, XML, JSON, CSV or TSV. See also the <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
this.$refs.myScheduler.exportData('xls');
}
}
</script>
|
||
| focus | None | None |
|
Focuses the Scheduler. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
this.$refs.myScheduler.focus();
}
}
</script>
|
||
| getAppointmentProperty | appointmentId, name | Object |
|
Gets the value of an Appointment property. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
const value = this.$refs.myScheduler.getAppointmentProperty('id1','subject');
}
}
</script>
|
||
| getSelection | None | Object |
|
Gets the cells selection. Returns an object with the following members:
<template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
const value = this.$refs.myScheduler.getSelection();
}
}
</script>
|
||
| getAppointments | None | Array |
|
Gets the appointments loaded in jqxScheduler. The return value is an Array of objects. Each object has the appointmentDataFields. See appointmentDataFields property. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
const value = this.$refs.myScheduler.getAppointments();
}
}
</script>
|
||
| getDataAppointments | None | Array |
|
Gets the appointments loaded in jqxScheduler. The return value is an Array of objects. Each object has the fields defined in the dataAdapter's source object. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
const value = this.$refs.myScheduler.getDataAppointments();
}
}
</script>
|
||
| hideAppointmentsByResource | resourcesId | None |
|
Hides appointments by given resourceId. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
this.$refs.myScheduler.hideAppointmentsByResource('Room 1');
}
}
</script>
|
||
| openMenu | left, top | None |
|
Opens the context menu. <template>
<div>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
<JqxButton @click="open()">Open Menu</JqxButton>
<JqxButton @click="close()">Close Menu</JqxButton>
</div>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue';
export default {
components: {
JqxScheduler,
JqxButton
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
open: function () {
this.$refs.myScheduler.openMenu(200, 200);
},
close: function () {
this.$refs.myScheduler.closeMenu();
}
}
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 20px;
margin-right: 20px;
}
</style>
|
||
| openDialog | left, top | None |
|
Opens the edit dialog. <template>
<div>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
<JqxButton @click="open()">Open Menu</JqxButton>
<JqxButton @click="close()">Close Menu</JqxButton>
</div>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
import JqxButton from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxbuttons.vue';
export default {
components: {
JqxScheduler,
JqxButton
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
},
methods: {
open: function () {
this.$refs.myScheduler.openDialog(10, 20);
},
close: function () {
this.$refs.myScheduler.closeDialog();
}
}
}
</script>
<style>
.jqx-button {
display: inline-block;
margin-top: 20px;
margin-right: 20px;
}
</style>
|
||
| selectAppointment | appointmentId | None |
|
Selects an appointment. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
this.$refs.myScheduler.selectAppointment('id1');
}
}
</script>
|
||
| setAppointmentProperty | appointmentId, name, value | None |
|
Sets the value of an appointment's property. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
this.$refs.myScheduler.beginAppointmentsUpdate();
this.$refs.myScheduler.setAppointmentProperty('id1', 'borderColor', 'red');
this.$refs.myScheduler.endAppointmentsUpdate();
}
}
</script>
|
||
| selectCell | date, allday, resourceId | None |
|
Selects a cell. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
this.$refs.myScheduler.selectCell(new jqx.date(2018, 11, 23),false,null);
}
}
</script>
|
||
| showAppointmentsByResource | resourceId | None |
|
Shows appointments by given resourceId. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views" />
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
this.$refs.myScheduler.hideAppointmentsByResource('Room 1');
this.$refs.myScheduler.showAppointmentsByResource('Room 1');
}
}
</script>
|
||
| scrollWidth | None | Number |
|
Returns the scrollbable width. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
const value = this.$refs.myScheduler.scrollWidth();
}
}
</script>
|
||
| scrollHeight | None | Number |
|
Returns the scrollbable height. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
const value = this.$refs.myScheduler.scrollHeight();
}
}
</script>
|
||
| scrollLeft | left | None |
|
Scrolls horizontally to a given position. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
this.$refs.myScheduler.scrollLeft(0);
}
}
</script>
|
||
| scrollTop | top | None |
|
Scrolls vertically to a given position. <template>
<JqxScheduler ref="myScheduler"
:date="date" :source="source" :view="'weekView'" :showLegend="true" :resources="resources"
:appointmentDataFields="appointmentDataFields" :views="views"
/>
</template>
<script>
import JqxScheduler from 'jqwidgets-scripts/jqwidgets-vue/vue_jqxscheduler.vue';
export default {
components: {
JqxScheduler
},
data: function () {
return {
date: new jqx.date(2018, 11, 23),
source: new jqx.dataAdapter(this.source),
resources: {
colorScheme: "scheme05",
dataField: "calendar",
source: new jqx.dataAdapter(this.source)
},
appointmentDataFields: {
from: "start",
to: "end",
id: "id",
description: "description",
location: "place",
subject: "subject",
resourceId: "calendar"
},
views: [
'dayView',
'weekView',
'monthView'
]
}
},
beforeCreate: function () {
var appointments = new Array();
var appointment1 = {
id: "id1",
description: "George brings projector for presentations.",
subject: "Quarterly Project Review Meeting",
calendar: "Room 1",
start: new Date(2018, 10, 20, 9, 0, 0),
end: new Date(2018, 10, 20, 16, 0, 0)
}
var appointment2 = {
id: "id2",
subject: "IT Group Mtg.",
calendar: "Room 2",
start: new Date(2018, 10, 21, 10, 0, 0),
end: new Date(2018, 10, 21, 15, 0, 0)
}
var appointment3 = {
id: "id3",
subject: "Course Social Media",
calendar: "Room 3",
start: new Date(2018, 10, 22, 11, 0, 0),
end: new Date(2018, 10, 22, 13, 0, 0)
}
appointments.push(appointment1);
appointments.push(appointment2);
appointments.push(appointment3);
this.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: appointments
};
},
mounted: function () {
this.$refs.myScheduler.ensureAppointmentVisible('id1');
this.$refs.myScheduler.scrollTop(10);
}
}
</script>
|
||