+21
-0
lines changedFilter options
+21
-0
lines changed Original file line number Diff line number Diff line change
@@ -32,6 +32,7 @@
32
32
<p>All the following options can be applied to the md-datepicker component:</p>
33
33
34
34
<api-table :headings="props.headings" :props="props.props" slot="props" />
35
+
<api-table :headings="events.headings" :props="events.props" slot="events" />
35
36
</api-item>
36
37
</div>
37
38
</page-container>
@@ -72,6 +73,21 @@
72
73
defaults: 'true'
73
74
}
74
75
]
76
+
},
77
+
events: {
78
+
headings: ['Name', 'Description', 'Value'],
79
+
props: [
80
+
{
81
+
name: 'md-opened',
82
+
description: 'Triggered when a datepicker dialog opens',
83
+
value: 'null'
84
+
},
85
+
{
86
+
name: 'md-closed',
87
+
description: 'Triggered when a datepicker dialog closes',
88
+
value: 'null'
89
+
},
90
+
]
75
91
}
76
92
})
77
93
}
Original file line number Diff line number Diff line change
@@ -84,6 +84,11 @@
84
84
toggleDialog () {
85
85
if (!isFirefox || this.mdOverrideNative) {
86
86
this.showDialog = !this.showDialog
87
+
if (this.showDialog) {
88
+
this.$emit('md-opened')
89
+
} else {
90
+
this.$emit('md-closed')
91
+
}
87
92
} else {
88
93
this.$refs.input.$el.click()
89
94
}
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4