@event-calendar/core 4.6.0 → 4.7.1

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 CHANGED
@@ -4,7 +4,7 @@ See [demo](https://vkurko.github.io/calendar/) and [changelog](CHANGELOG.md).
4
4
 
5
5
  Full-sized drag & drop JavaScript event calendar with resource & timeline views:
6
6
 
7
- * Lightweight (33kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
7
+ * Lightweight (37kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
8
8
  * 100% human-coded
9
9
  * Zero-dependency (standalone bundle)
10
10
  * Used on over 70,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)
@@ -244,8 +244,8 @@ This bundle contains a version of the calendar that includes all plugins and is
244
244
 
245
245
  The first step is to include the following lines of code in the `<head>` section of your page:
246
246
  ```html
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>
247
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@4.7.1/dist/event-calendar.min.css">
248
+ <script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@4.7.1/dist/event-calendar.min.js"></script>
249
249
  ```
250
250
 
251
251
  <details>
@@ -370,7 +370,7 @@ function (text) {
370
370
  </table>
371
371
 
372
372
  ### customButtons
373
- - Type `object`
373
+ - Type `object` or `function`
374
374
  - Default `{}`
375
375
 
376
376
  Defines custom buttons that can be used in the [headerToolbar](#headertoolbar).
@@ -430,6 +430,23 @@ If `true`, the button will appear pressed/active
430
430
  </tr>
431
431
  </table>
432
432
 
433
+ This option can also be set as a callback function that receives default custom button object and should return a new one:
434
+
435
+ ```js
436
+ function (customButtons) {
437
+ // return new custom buttons object
438
+ }
439
+ ```
440
+ <table>
441
+ <tr>
442
+ <td>
443
+
444
+ `customButtons`
445
+ </td>
446
+ <td>An object with default custom buttons</td>
447
+ </tr>
448
+ </table>
449
+
433
450
  ### date
434
451
  - Type `Date` or `string`
435
452
  - Default `new Date()`
package/dist/index.css CHANGED
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * EventCalendar v4.6.0
2
+ * EventCalendar v4.7.1
3
3
  * https://github.com/vkurko/calendar
4
4
  */
5
5
  .ec {