Skip to content

Commit

Permalink
v3.2.0
Browse files Browse the repository at this point in the history
Added the ability to pass html to custom buttons
Added active parameter for custom buttons
Fixed event background color defined from resource
  • Loading branch information
vkurko committed Jul 14, 2024
1 parent 13d63a1 commit 9924a0f
Show file tree
Hide file tree
Showing 37 changed files with 560 additions and 870 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
# Event Calendar changelog

## 3.2.0
July 14, 2024

* Added the ability to pass `html` to custom buttons ([277](https://github.com/vkurko/calendar/issues/277))
* Added `active` parameter for custom buttons
* Fixed event background color defined from resource ([295](https://github.com/vkurko/calendar/issues/295))

## 3.1.0
June 21, 2024

Expand Down
25 changes: 19 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ See [demo](https://vkurko.github.io/calendar/) and [changelog](CHANGELOG.md).

Full-sized drag & drop JavaScript event calendar with resource & timeline views:

* Lightweight (39kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Lightweight (35kb [br](https://en.wikipedia.org/wiki/Brotli) compressed)
* Zero-dependency (pre-built bundle)
* Used on over 70,000 websites with [Bookly](https://wordpress.org/plugins/bookly-responsive-appointment-booking-tool/)

Expand Down Expand Up @@ -204,8 +204,8 @@ import '@event-calendar/core/index.css';
### Pre-built browser ready bundle
Include the following lines of code in the `<head>` section of your page:
```html
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.1.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.1.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.js"></script>
```

<details>
Expand Down Expand Up @@ -363,9 +363,12 @@ Each `customButton` entry accepts the following properties:
<tr>
<td>

`text `
`text`
</td>
<td>

The text to be display on the button itself. See [Content](#content)
</td>
<td>The text to be display on the button itself</td>
</tr>
<tr>
<td>
Expand All @@ -374,6 +377,16 @@ Each `customButton` entry accepts the following properties:
</td>
<td>A callback function that is called when the button is clicked. Accepts one argument <a href="https://developer.mozilla.org/en-US/docs/Web/API/MouseEvent">mouseEvent</a></td>
</tr>
<tr>
<td>

`active`
</td>
<td>

If `true`, the button will appear pressed/active
</td>
</tr>
</table>

### date
Expand Down Expand Up @@ -2743,7 +2756,7 @@ Here are all properties that exist in Resource object:
</td>
<td>

The title of the resource. See [Content](#content).
The title of the resource. See [Content](#content)
</td>
</tr>
<tr>
Expand Down
4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
<link rel="manifest" href="site.webmanifest">
<link rel="stylesheet" href="global.css?20231021">

<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.1.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.1.0/event-calendar.min.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.css">
<script src="https://cdn.jsdelivr.net/npm/@event-calendar/build@3.2.0/event-calendar.min.js"></script>
<!-- Yandex.Metrika counter -->
<script type="text/javascript" >
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
Expand Down
Loading

0 comments on commit 9924a0f

Please sign in to comment.