Skip to content

Commit 12f3a64

Browse files
committed
Support for event listeners and upgrades
1 parent baa5b33 commit 12f3a64

5 files changed

Lines changed: 3110 additions & 2851 deletions

File tree

example/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
{
22
"name": "react-github-calendar-example",
33
"homepage": "https://grubersjoe.github.io/react-github-calendar/",
4-
"version": "3.1.3",
4+
"version": "3.2.0",
55
"license": "MIT",
66
"private": true,
77
"dependencies": {
88
"react": "link:../node_modules/react",
99
"react-dom": "link:../node_modules/react-dom",
1010
"react-github-calendar": "link:..",
1111
"react-scripts": "^4.0.0",
12-
"react-syntax-highlighter": "^15.4.4",
12+
"react-syntax-highlighter": "^15.4.5",
1313
"react-tooltip": "^4.2.21",
1414
"typeface-public-sans": "^1.1.13"
1515
},

example/src/Demo.tsx

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,28 @@ const Demo: FunctionComponent = () => {
268268
compatible date string used in tooltips.
269269
</td>
270270
</tr>
271+
<tr>
272+
<td>eventHandlers</td>
273+
<td>
274+
(event: SyntheticEvent)
275+
<br />
276+
&nbsp;&nbsp;{'=>'} (data: Day)
277+
<br />
278+
&nbsp;&nbsp;{'=>'} void
279+
</td>
280+
<td>&#123;&#125;</td>
281+
<td>
282+
Map of event handlers to register for the SVG{' '}
283+
<code>
284+
{'<'}rect{'>'}
285+
</code>{' '}
286+
elements that are used to render the calendar days. See this{' '}
287+
<a href="https://grubersjoe.github.io/react-activity-calendar/?path=/story/activity-calendar--event-handlers">
288+
example
289+
</a>
290+
.
291+
</td>
292+
</tr>
271293
<tr>
272294
<td>fontSize</td>
273295
<td>number</td>

0 commit comments

Comments
 (0)