vue-simple-calendar
Advanced tools
Changelog
3.0.2 (2018-05-16)
top
scoped property to the event
slot (#66, thanks @lochstar!)flex-direction: column
(#71)id
values (#65)Changelog
3.0.1 (2018-05-08)
eventTop
, eventContentHeight
, and eventBorderHeight
props to allow better theming (#66)Changelog
3.0.0 (2018-05-05)
dateClasses
prop to allow easy dynamic styling of specific dates (#55, thanks @LTroya!)zIndex
no longer passed in event slot)dayContent
slot now does not contain the cv-date-number
div. This makes it easier to provide your own content without having to duplicate the day number.content
element within each day has been removed, as it is no longer needed. The default theme now uses box-shadow
instead of border
to highlight the date when dragging an event.periodLabel
from CSS logic into a reusable functionChangelog
2.2.0 (2018.03.18)
zIndex
prop to event scoped slot properties.click-event
and drag-*
events events now passes the normalized event (same as the "event" named slot). You can access your original event (which is the one you should modify) using the originalItem
attribute. While this is a minor breaking change, I wasn't quite ready to move up to 3.0, and this does make the API more consistent in how it passes events back to the caller.Changelog
2.1.2 / 2.1.3 (2018.01.27)
click-date
events for future dates when disableFuture
is true
(feature parity with disablePast). Fixes #40.Changelog
2.1.2 / 2.1.3 (2018.01.27)
click-date
events for future dates when disableFuture
is true
(feature parity with disablePast). Fixes #40.Changelog
2.1.0 / 2.1.1 (2018.01.25)
The events below were renamed to make them kebab-case (for DOM template compatibility) and to refine the wording. The old event names, shown here, were deprecated in this version and removed in 2.2:
clickDay
clickEvent
setShowDate
dragEventStart
dragEventEnterDate
dragEventLeaveDate
dragEventOverDate
dropEventOnDate
Changelog
2.1.0 / 2.1.1 (2018.01.25)
The events below were renamed to make them kebab-case (for DOM template compatibility) and to refine the wording. The old event names, shown here, were deprecated in this version and removed in 2.2:
clickDay
clickEvent
setShowDate
dragEventStart
dragEventEnterDate
dragEventLeaveDate
dragEventOverDate
dropEventOnDate
Changelog
2.0.1 (2018.01.23)
outsideOfMonth
logic bug, #38Changelog
2.0.0 (2018.01.01)
Version 2.0 includes some major upgrades! Here are the new features:
event
This means there are some breaking changes:
vue-simple-calendar
.)yyyy-mm-dd hh:mm:ss
). The time portion is optional, and within time, the minutes and seconds are also optional.dragEventDragOverDate
event (undocumented) has been renamed as dragEventOverDate
. Prior to 2.0, user events emitted the calendar event's id as the first argument rather than the calendar event itself. Since not all calendar events will have an ID and the parent will probably want access to the actual calendar event, I changed these Vue events to emit the original calendar event, not just its id.dayList
slot has been replaced with dayHeader
, and slot day
has been renamed as dayContent
.slot
in the sense of an event display row has been renamed as eventRow
in the code and CSS to avoid confusion with Vue slots.showEventTimes
- If true, shows the start and/or end time of an event beside the event title. Midnight is not shown, a midnight time is assumed to indicate an all-day or indeterminate time. (If you want to show midnight, use 00:00:01
and don't choose to show seconds.) The default is false
.timeFormatOptions
- This takes an object containing Intl.DateTimeFormat
options to be used to format the event times. The locale
setting is automatically used. This option is ignored for browsers that don't support Intl
(they will see the 24-hour, zero-padded time).displayPeriodUom
- The period type to show. By default this is month
, i.e., it shows a calendar in month-sized chunks. Other allowed values are year
and week
.displayPeriodCount
- The number of periods to show within the view. For example, if displayPeriodUom
is week
and displayPeriodCount
is 2, the view will show a two-week period.