primevue-mirror/service/EventService.js

23 lines
1.1 KiB
JavaScript
Executable File

export const EventService = {
getData() {
return [
{ id: 1, title: 'All Day Event', start: '2023-02-01' },
{ id: 2, title: 'Long Event', start: '2023-02-07', end: '2023-02-10' },
{ id: 3, title: 'Repeating Event', start: '2023-02-09T16:00:00' },
{ id: 4, title: 'Repeating Event', start: '2023-02-16T16:00:00' },
{ id: 5, title: 'Conference', start: '2023-02-11', end: '2023-02-13' },
{ id: 6, title: 'Meeting', start: '2023-02-12T10:30:00', end: '2023-02-12T12:30:00' },
{ id: 7, title: 'Lunch', start: '2023-02-12T12:00:00' },
{ id: 8, title: 'Meeting', start: '2023-02-12T14:30:00' },
{ id: 9, title: 'Happy Hour', start: '2023-02-12T17:30:00' },
{ id: 10, title: 'Dinner', start: '2023-02-12T20:00:00' },
{ id: 11, title: 'Birthday Party', start: '2023-02-13T07:00:00' },
{ id: 12, title: 'Click for Google', url: 'https://www.google.com/', start: '2023-02-28' }
];
},
getEvents() {
return Promise.resolve(this.getData());
}
};