Skip to content

Commit a37a54a

Browse files
committed
docs(examples): add events table and update examples
1 parent 951727a commit a37a54a

File tree

3 files changed

+31
-2
lines changed

3 files changed

+31
-2
lines changed

docs/package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/src/App.svelte

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,34 @@
276276
</table>
277277
</section>
278278

279+
<br>
280+
281+
<section>
282+
<h2>Events</h2>
283+
284+
<table class="table">
285+
<tr>
286+
<th>Name</th>
287+
<th>Type</th>
288+
<th>Description</th>
289+
<th>Default</th>
290+
</tr>
291+
<tr>
292+
<td>onDayClick</td>
293+
<td><code>function</code></td>
294+
<td>Callback function to handle day click events.</td>
295+
<td><code>None</code></td>
296+
</tr>
297+
<tr>
298+
<td>onNavigationChange</td>
299+
<td><code>function</code></td>
300+
<td>Callback function to handle the navigation click event for months and years.</td>
301+
<td><code>None</code></td>
302+
</tr>
303+
</table>
304+
</section>
305+
306+
<br>
279307
<section>
280308
<h2>Examples</h2>
281309
<p>Below are different examples of how you can configure the datepicker.</p>
@@ -374,6 +402,7 @@
374402
}
375403
376404
.showcase {
405+
display: table-caption;
377406
height: 350px;
378407
margin: 48px 0;
379408
position: relative;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@svelte-plugins/datepicker",
33
"description": "A simple datepicker component designed for Svelte.",
4-
"version": "1.0.1",
4+
"version": "1.0.2",
55
"license": "MIT",
66
"author": "Kieran Boyle (https://github.com/dysfunc)",
77
"homepage": "https://github.com/svelte-plugins/datepicker",

0 commit comments

Comments
 (0)