Skip to content

Commit 8543a93

Browse files
authored
Merge pull request #24 from ryancyq/patch-1
📖 doc: add missing end date prop in doc and example for range
2 parents b09b7a1 + d0cca76 commit 8543a93

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,7 @@ Try it in the [Svelte REPL](https://svelte.dev/repl/cae0ce6e92634878b6e1a587146d
6161
| Prop | Description | Default |
6262
| :---------------- | :------------------------------------------------------------------------------------ | :-------------------------- |
6363
| startDate | The start date string or date object. | `object` (default: `null`)
64+
| endDate | The end date string or date object. | `object` (default: `null`)
6465
| startDateTime | The start date time string in 24 hour format. | `string` (default: `00:00`)
6566
| endDateTime | The end date time string in 24 hour format. | `string` (default: `00:00`)
6667
| defaultYear | The year you want to show as the default. | `number` (default: `2023`)

docs/src/App.svelte

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,12 @@
4646
<td>The start date <code>string</code> or <code>date</code> object.</td>
4747
<td><code>null</code></td>
4848
</tr>
49+
<tr>
50+
<td>endDate</td>
51+
<td><code>object</code></td>
52+
<td>The end date <code>string</code> or <code>date</code> object.</td>
53+
<td><code>null</code></td>
54+
</tr>
4955
<tr>
5056
<td>startDateTime</td>
5157
<td><code>string</code></td>

docs/src/examples/range/range.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
</script>
101101
102102
<div class="date-filter">
103-
<DatePicker bind:isOpen bind:startDate isRange${isMultipane ? ' isMultipane' : ''}${showPresets ? ' showPresets' : ''}>
103+
<DatePicker bind:isOpen bind:startDate bind:endDate isRange${isMultipane ? ' isMultipane' : ''}${showPresets ? ' showPresets' : ''}>
104104
<div class="date-field" on:click={toggleDatePicker} class:open={isOpen}>
105105
<i class="icon-calendar" />
106106
<div class="date">

0 commit comments

Comments
 (0)