Skip to content

Commit

Permalink
chore: add change event example (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
lja1018 authored Jan 5, 2021
1 parent ea6ea04 commit fb38b73
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/js/timepicker/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -632,6 +632,13 @@ var TimePicker = defineClass(
/**
* Change event - TimePicker
* @event TimePicker#change
* @type {object} event - Event object
* @property {number} hour - changed hour
* @property {number} minute - changed minute
* @example
* timepicker.on('change', (e) => {
* console.log(e.hour, e.minute);
* });
*/
this.fire('change', {
hour: this._hour,
Expand Down

0 comments on commit fb38b73

Please sign in to comment.