@event-calendar/core
Advanced tools
Comparing version 2.1.0 to 2.2.0
{ | ||
"name": "@event-calendar/core", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"title": "Event Calendar Core package", | ||
@@ -5,0 +5,0 @@ "description": "Full-sized drag & drop event calendar with resource view", |
@@ -29,2 +29,3 @@ # Event Calendar [![](https://data.jsdelivr.com/v1/package/npm/@event-calendar/build/badge)](https://www.jsdelivr.com/package/npm/@event-calendar/build) [![npm](https://img.shields.io/npm/dm/@event-calendar/core?color=red&label=npm&style=flat-square)](https://www.npmjs.com/package/@event-calendar/core) | ||
- [datesSet](#datesset) | ||
- [dayCellFormat](#daycellformat) | ||
- [dayHeaderFormat](#dayheaderformat) | ||
@@ -48,5 +49,5 @@ - [dayMaxEvents](#daymaxevents) | ||
- [eventDrop](#eventdrop) | ||
- [eventDurationEditable](#eventdurationeditable) | ||
</td><td> | ||
- [eventDurationEditable](#eventdurationeditable) | ||
- [eventLongPressDelay](#eventlongpressdelay) | ||
@@ -77,5 +78,5 @@ - [eventMouseEnter](#eventmouseenter) | ||
- [noEventsClick](#noeventsclick) | ||
- [noEventsContent](#noeventscontent) | ||
</td><td> | ||
- [noEventsContent](#noeventscontent) | ||
- [nowIndicator](#nowindicator) | ||
@@ -201,4 +202,4 @@ - [pointer](#pointer) | ||
```html | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.1.0/event-calendar.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.1.0/event-calendar.min.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.2.0/event-calendar.min.css"> | ||
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@2.2.0/event-calendar.min.js"></script> | ||
``` | ||
@@ -460,2 +461,25 @@ | ||
### dayCellFormat | ||
- Type `object` or `function` | ||
- Default `{day: 'numeric'}` | ||
Defines the text that is displayed inside the day cell in the `dayGrid` view. | ||
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: | ||
```js | ||
function (date) { | ||
// return Content with the formatted date string | ||
} | ||
``` | ||
<table> | ||
<tr> | ||
<td> | ||
`date` | ||
</td> | ||
<td>JavaScript Date object that needs to be formatted</td> | ||
</tr> | ||
</table> | ||
### dayHeaderFormat | ||
@@ -462,0 +486,0 @@ - Type `object` or `function` |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
190889
2727