Skip to content

Commit 3c4a8cd

Browse files
authored
Merge pull request #47 from radeanu/add-reset-event
add reset event & update docs
2 parents 77cb71a + 77ccb64 commit 3c4a8cd

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

docs/.vuepress/config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module.exports = {
2121
{
2222
title: 'GETTING STARTED',
2323
collapsable: false,
24-
children: ['installation', 'using', 'props'],
24+
children: ['installation', 'using', 'props', 'events'],
2525
},
2626
{
2727
title: 'EXAMPLES',

docs/events.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
---
2+
title: 'Events'
3+
---
4+
5+
Name | Desciption
6+
------------- | -------------
7+
@input | On input
8+
@change | On change value of selected date
9+
@reset | On click the clear button

src/components/datepicker.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,7 @@ export default {
353353
},
354354
resetDate () {
355355
this.selectedDate = this.defaultSelectedDate()
356+
this.$emit('reset')
356357
},
357358
defaultSelectedDate () {
358359
return this.range ? [null, null] : null

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy