@@ -66,13 +66,14 @@ Inspired by [FullCalendar](https://fullcalendar.io/), it implements similar opti
6666 - [ eventDragStart] ( #eventdragstart )
6767 - [ eventDragStop] ( #eventdragstop )
6868 - [ eventDrop] ( #eventdrop )
69+ - [ eventDurationEditable] ( #eventdurationeditable )
6970 </td ><td >
7071
71- - [ eventDurationEditable] ( #eventdurationeditable )
7272 - [ eventFilter] ( #eventfilter )
7373 - [ eventLongPressDelay] ( #eventlongpressdelay )
7474 - [ eventMouseEnter] ( #eventmouseenter )
7575 - [ eventMouseLeave] ( #eventmouseleave )
76+ - [ eventOrder] ( #eventorder )
7677 - [ eventResizableFromStart] ( #eventresizablefromstart )
7778 - [ eventResize] ( #eventresize )
7879 - [ eventResizeStart] ( #eventresizestart )
@@ -243,8 +244,8 @@ This bundle contains a version of the calendar that includes all plugins and is
243244
244245The first step is to include the following lines of code in the ` <head> ` section of your page:
245246``` html
246- <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/@event-calendar/build@4.5.2 /dist/event-calendar.min.css" >
247- <script src =" https://cdn.jsdelivr.net/npm/@event-calendar/build@4.5.2 /dist/event-calendar.min.js" ></script >
247+ <link rel =" stylesheet" href =" https://cdn.jsdelivr.net/npm/@event-calendar/build@4.6.0 /dist/event-calendar.min.css" >
248+ <script src =" https://cdn.jsdelivr.net/npm/@event-calendar/build@4.6.0 /dist/event-calendar.min.js" ></script >
248249```
249250
250251<details >
@@ -1286,6 +1287,51 @@ The current [View](#view-object) object
12861287</tr >
12871288</table >
12881289
1290+ ### eventOrder
1291+ - Type ` function `
1292+ - Default ` undefined `
1293+
1294+ A function that determines the order in which events that visually intersect in the current view are displayed.
1295+
1296+ When ` eventOrder ` is not specified, events are ordered by start time with all-day events appearing first.
1297+
1298+ ``` js
1299+ function (a , b ) {
1300+ // Return a negative value if 'a' should come before 'b'
1301+ // Return a positive value if 'a' should come after 'b'
1302+ // Return zero if 'a' and 'b' are equal
1303+ }
1304+ ```
1305+
1306+ ` a ` and ` b ` are objects (so called ` event chunks ` ) with the following properties:
1307+
1308+ <table >
1309+ <tr >
1310+ <td >
1311+
1312+ ` start `
1313+ </td >
1314+ <td >JavaScript Date object holding the event chunk’s start time</td >
1315+ </tr >
1316+ <tr >
1317+ <td >
1318+
1319+ ` end `
1320+ </td >
1321+ <td >JavaScript Date object holding the event chunk’s end time</td >
1322+ </tr >
1323+ <tr >
1324+ <td >
1325+
1326+ ` event `
1327+ </td >
1328+ <td >
1329+
1330+ The [ Event] ( #event-object ) object associated with this chunk
1331+ </td >
1332+ </tr >
1333+ </table >
1334+
12891335### eventResizableFromStart
12901336- Type ` boolean `
12911337- Default ` false `
0 commit comments