UNPKG

@daykeep/calendar-core

Version:

A full display calendar for multiple Vue.js frameworks

58 lines (57 loc) 1.25 kB
// this file contains shared properties for Calendar, CalendarAgenda, CalendarMonth and CalendarMultiday import DateTime from 'luxon/src/datetime' export default { props: { startDate: { type: [Object, Date], default: () => { return DateTime.local() } }, eventArray: { type: Array, default: () => [] }, parsedEvents: { type: Object, default: () => {} }, eventRef: { type: String, default: () => { return 'cal-' + Math.random().toString(36).substring(2, 15) } }, preventEventDetail: { type: Boolean, default: false }, calendarLocale: { type: String, default: () => { return DateTime.local().locale } }, calendarTimezone: { type: String, default: () => { return DateTime.local().zoneName } }, sundayFirstDayOfWeek: { type: Boolean, default: false }, allowEditing: { type: Boolean, default: false }, renderHtml: { type: Boolean, default: false }, dayDisplayStartHour: { type: Number, default: 7 }, fullComponentRef: String }, methods: { doUpdate: () => { // this should be overridden } }, mounted () {} }