fullcalendar 6.0.0-beta.3 → 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +52 -9
- package/index.global.js +6484 -6463
- package/index.global.min.js +3 -3
- package/package.json +15 -16
- package/index.global.js.map +0 -1
package/README.md
CHANGED
|
@@ -1,14 +1,57 @@
|
|
|
1
1
|
|
|
2
2
|
# FullCalendar Standard Bundle
|
|
3
3
|
|
|
4
|
-
|
|
4
|
+
Easily render a full-sized drag & drop calendar with a combination of standard plugins
|
|
5
5
|
|
|
6
|
-
This `fullcalendar` package bundles
|
|
6
|
+
This `fullcalendar` package bundles these plugins:
|
|
7
7
|
|
|
8
|
-
- [@fullcalendar/core](https://
|
|
9
|
-
- [@fullcalendar/interaction](https://
|
|
10
|
-
- [@fullcalendar/daygrid](https://
|
|
11
|
-
- [@fullcalendar/timegrid](https://
|
|
12
|
-
- [@fullcalendar/list](https://
|
|
13
|
-
|
|
14
|
-
|
|
8
|
+
- [@fullcalendar/core](https://github.com/fullcalendar/fullcalendar/tree/main/packages/core)
|
|
9
|
+
- [@fullcalendar/interaction](https://github.com/fullcalendar/fullcalendar/tree/main/packages/interaction)
|
|
10
|
+
- [@fullcalendar/daygrid](https://github.com/fullcalendar/fullcalendar/tree/main/packages/daygrid)
|
|
11
|
+
- [@fullcalendar/timegrid](https://github.com/fullcalendar/fullcalendar/tree/main/packages/timegrid)
|
|
12
|
+
- [@fullcalendar/list](https://github.com/fullcalendar/fullcalendar/tree/main/packages/list)
|
|
13
|
+
|
|
14
|
+
## Usage with CDN or ZIP archive
|
|
15
|
+
|
|
16
|
+
Load the `index.global.min.js` file and use the `FullCalendar` global namespace:
|
|
17
|
+
|
|
18
|
+
```html
|
|
19
|
+
<!DOCTYPE html>
|
|
20
|
+
<html>
|
|
21
|
+
<head>
|
|
22
|
+
<script src='https://cdn.jsdelivr.net/npm/fullcalendar/index.global.min.js'></script>
|
|
23
|
+
<script>
|
|
24
|
+
|
|
25
|
+
document.addEventListener('DOMContentLoaded', function() {
|
|
26
|
+
const calendarEl = document.getElementById('calendar')
|
|
27
|
+
const calendar = new FullCalendar.Calendar(calendarEl, {
|
|
28
|
+
initialView: 'dayGridMonth'
|
|
29
|
+
})
|
|
30
|
+
calendar.render()
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
</script>
|
|
34
|
+
</head>
|
|
35
|
+
<body>
|
|
36
|
+
<div id='calendar'></div>
|
|
37
|
+
</body>
|
|
38
|
+
</html>
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
## Usage with NPM and ES modules
|
|
42
|
+
|
|
43
|
+
```sh
|
|
44
|
+
npm install fullcalendar
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
```js
|
|
48
|
+
import { Calendar } from 'fullcalendar'
|
|
49
|
+
|
|
50
|
+
document.addEventListener('DOMContentLoaded', function() {
|
|
51
|
+
const calendarEl = document.getElementById('calendar')
|
|
52
|
+
const calendar = new Calendar(calendarEl, {
|
|
53
|
+
initialView: 'dayGridMonth'
|
|
54
|
+
})
|
|
55
|
+
calendar.render()
|
|
56
|
+
})
|
|
57
|
+
```
|