vue-flatpickr-component
Version:
Vue.js component for Flatpickr date-time picker
25 lines (21 loc) • 495 B
text/typescript
// Events to emit, copied from flatpickr source
import flatpickr from 'flatpickr';
import HookKey = flatpickr.Options.HookKey;
const includedEvents = [
'onChange',
'onClose',
'onDestroy',
'onMonthChange',
'onOpen',
'onYearChange',
] as HookKey[];
// Let's not emit these events by default
const excludedEvents = [
'onValueUpdate',
'onDayCreate',
'onParseConfig',
'onReady',
'onPreCalendarPosition',
'onKeyDown',
] as HookKey[];
export {includedEvents, excludedEvents}