mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-10 09:22:34 +00:00
Merged new Docs and Demos
This commit is contained in:
parent
296cc217fb
commit
dfcc8ef4e7
1235 changed files with 130757 additions and 122640 deletions
|
@ -1,9 +1,22 @@
|
|||
export default class EventService {
|
||||
getEvents() {
|
||||
const runtimeConfig = useRuntimeConfig();
|
||||
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' }
|
||||
];
|
||||
},
|
||||
|
||||
return fetch(runtimeConfig.public.contextPath + 'demo/data/events.json')
|
||||
.then((res) => res.json())
|
||||
.then((d) => d.data);
|
||||
getEvents() {
|
||||
return Promise.resolve(this.getData());
|
||||
}
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue