@event-calendar/build 2.1.0 → 2.2.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 +28 -4
- package/event-calendar.min.js +2 -2
- package/event-calendar.min.js.map +1 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -26,6 +26,7 @@ Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options
|
|
|
26
26
|
- [dateClick](#dateclick)
|
|
27
27
|
- [datesAboveResources](#datesaboveresources)
|
|
28
28
|
- [datesSet](#datesset)
|
|
29
|
+
- [dayCellFormat](#daycellformat)
|
|
29
30
|
- [dayHeaderFormat](#dayheaderformat)
|
|
30
31
|
- [dayMaxEvents](#daymaxevents)
|
|
31
32
|
- [dayPopoverFormat](#daypopoverformat)
|
|
@@ -44,9 +45,9 @@ Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options
|
|
|
44
45
|
- [eventDragStart](#eventdragstart)
|
|
45
46
|
- [eventDragStop](#eventdragstop)
|
|
46
47
|
- [eventDrop](#eventdrop)
|
|
47
|
-
- [eventDurationEditable](#eventdurationeditable)
|
|
48
48
|
</td><td>
|
|
49
49
|
|
|
50
|
+
- [eventDurationEditable](#eventdurationeditable)
|
|
50
51
|
- [eventLongPressDelay](#eventlongpressdelay)
|
|
51
52
|
- [eventMouseEnter](#eventmouseenter)
|
|
52
53
|
- [eventMouseLeave](#eventmouseleave)
|
|
@@ -72,9 +73,9 @@ Inspired by [FullCalendar](https://fullcalendar.io/), implements similar options
|
|
|
72
73
|
- [longPressDelay](#longpressdelay)
|
|
73
74
|
- [moreLinkContent](#morelinkcontent)
|
|
74
75
|
- [noEventsClick](#noeventsclick)
|
|
75
|
-
- [noEventsContent](#noeventscontent)
|
|
76
76
|
</td><td>
|
|
77
77
|
|
|
78
|
+
- [noEventsContent](#noeventscontent)
|
|
78
79
|
- [nowIndicator](#nowindicator)
|
|
79
80
|
- [pointer](#pointer)
|
|
80
81
|
- [resources](#resources)
|
|
@@ -195,8 +196,8 @@ import '@event-calendar/core/index.css';
|
|
|
195
196
|
### Pre-built browser ready bundle
|
|
196
197
|
Include the following lines of code in the `<head>` section of your page:
|
|
197
198
|
```html
|
|
198
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.
|
|
199
|
-
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.
|
|
199
|
+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.2.0/event-calendar.min.css">
|
|
200
|
+
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.2.0/event-calendar.min.js"></script>
|
|
200
201
|
```
|
|
201
202
|
|
|
202
203
|
<details>
|
|
@@ -453,6 +454,29 @@ The current [View](#view-object) object
|
|
|
453
454
|
</tr>
|
|
454
455
|
</table>
|
|
455
456
|
|
|
457
|
+
### dayCellFormat
|
|
458
|
+
- Type `object` or `function`
|
|
459
|
+
- Default `{day: 'numeric'}`
|
|
460
|
+
|
|
461
|
+
Defines the text that is displayed inside the day cell in the `dayGrid` view.
|
|
462
|
+
|
|
463
|
+
This value can be either an object with options for the native JavaScript [Intl.DateTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat) object, or a callback function that returns a [Content](#content) with the formatted string:
|
|
464
|
+
|
|
465
|
+
```js
|
|
466
|
+
function (date) {
|
|
467
|
+
// return Content with the formatted date string
|
|
468
|
+
}
|
|
469
|
+
```
|
|
470
|
+
<table>
|
|
471
|
+
<tr>
|
|
472
|
+
<td>
|
|
473
|
+
|
|
474
|
+
`date`
|
|
475
|
+
</td>
|
|
476
|
+
<td>JavaScript Date object that needs to be formatted</td>
|
|
477
|
+
</tr>
|
|
478
|
+
</table>
|
|
479
|
+
|
|
456
480
|
### dayHeaderFormat
|
|
457
481
|
- Type `object` or `function`
|
|
458
482
|
- Default `{weekday: 'short', month: 'numeric', day: 'numeric'}`
|