diff options
author | polo <ordipolo@gmx.fr> | 2025-06-23 03:33:38 +0200 |
---|---|---|
committer | polo <ordipolo@gmx.fr> | 2025-06-23 03:33:38 +0200 |
commit | cebc19ef236aac2968d2ffccfcff9b975b63fa8d (patch) | |
tree | 5b8e08045a45063475f533bfae4b4524720fe7bd /public/js/fullcalendar/examples/list-views.html | |
parent | 8cf5ac1abf9e2a6134cb82d4582aecaa99b1331a (diff) | |
download | cms-cebc19ef236aac2968d2ffccfcff9b975b63fa8d.zip |
fullcalendar
Diffstat (limited to 'public/js/fullcalendar/examples/list-views.html')
-rw-r--r-- | public/js/fullcalendar/examples/list-views.html | 114 |
1 files changed, 114 insertions, 0 deletions
diff --git a/public/js/fullcalendar/examples/list-views.html b/public/js/fullcalendar/examples/list-views.html new file mode 100644 index 0000000..cb219d0 --- /dev/null +++ b/public/js/fullcalendar/examples/list-views.html | |||
@@ -0,0 +1,114 @@ | |||
1 | <!DOCTYPE html> | ||
2 | <html> | ||
3 | <head> | ||
4 | <meta charset='utf-8' /> | ||
5 | <script src='../dist/index.global.js'></script> | ||
6 | <script> | ||
7 | |||
8 | document.addEventListener('DOMContentLoaded', function() { | ||
9 | var calendarEl = document.getElementById('calendar'); | ||
10 | |||
11 | var calendar = new FullCalendar.Calendar(calendarEl, { | ||
12 | |||
13 | headerToolbar: { | ||
14 | left: 'prev,next today', | ||
15 | center: 'title', | ||
16 | right: 'listDay,listWeek' | ||
17 | }, | ||
18 | |||
19 | // customize the button names, | ||
20 | // otherwise they'd all just say "list" | ||
21 | views: { | ||
22 | listDay: { buttonText: 'list day' }, | ||
23 | listWeek: { buttonText: 'list week' } | ||
24 | }, | ||
25 | |||
26 | initialView: 'listWeek', | ||
27 | initialDate: '2023-01-12', | ||
28 | navLinks: true, // can click day/week names to navigate views | ||
29 | editable: true, | ||
30 | dayMaxEvents: true, // allow "more" link when too many events | ||
31 | events: [ | ||
32 | { | ||
33 | title: 'All Day Event', | ||
34 | start: '2023-01-01' | ||
35 | }, | ||
36 | { | ||
37 | title: 'Long Event', | ||
38 | start: '2023-01-07', | ||
39 | end: '2023-01-10' | ||
40 | }, | ||
41 | { | ||
42 | groupId: 999, | ||
43 | title: 'Repeating Event', | ||
44 | start: '2023-01-09T16:00:00' | ||
45 | }, | ||
46 | { | ||
47 | groupId: 999, | ||
48 | title: 'Repeating Event', | ||
49 | start: '2023-01-16T16:00:00' | ||
50 | }, | ||
51 | { | ||
52 | title: 'Conference', | ||
53 | start: '2023-01-11', | ||
54 | end: '2023-01-13' | ||
55 | }, | ||
56 | { | ||
57 | title: 'Meeting', | ||
58 | start: '2023-01-12T10:30:00', | ||
59 | end: '2023-01-12T12:30:00' | ||
60 | }, | ||
61 | { | ||
62 | title: 'Lunch', | ||
63 | start: '2023-01-12T12:00:00' | ||
64 | }, | ||
65 | { | ||
66 | title: 'Meeting', | ||
67 | start: '2023-01-12T14:30:00' | ||
68 | }, | ||
69 | { | ||
70 | title: 'Happy Hour', | ||
71 | start: '2023-01-12T17:30:00' | ||
72 | }, | ||
73 | { | ||
74 | title: 'Dinner', | ||
75 | start: '2023-01-12T20:00:00' | ||
76 | }, | ||
77 | { | ||
78 | title: 'Birthday Party', | ||
79 | start: '2023-01-13T07:00:00' | ||
80 | }, | ||
81 | { | ||
82 | title: 'Click for Google', | ||
83 | url: 'http://google.com/', | ||
84 | start: '2023-01-28' | ||
85 | } | ||
86 | ] | ||
87 | }); | ||
88 | |||
89 | calendar.render(); | ||
90 | }); | ||
91 | |||
92 | </script> | ||
93 | <style> | ||
94 | |||
95 | body { | ||
96 | margin: 40px 10px; | ||
97 | padding: 0; | ||
98 | font-family: Arial, Helvetica Neue, Helvetica, sans-serif; | ||
99 | font-size: 14px; | ||
100 | } | ||
101 | |||
102 | #calendar { | ||
103 | max-width: 1100px; | ||
104 | margin: 0 auto; | ||
105 | } | ||
106 | |||
107 | </style> | ||
108 | </head> | ||
109 | <body> | ||
110 | |||
111 | <div id='calendar'></div> | ||
112 | |||
113 | </body> | ||
114 | </html> | ||