toggleMeridiem
supports a comma separated list. #2399.
viewMode
which provides
'clock' | 'calendar' | 'months' | 'years' | 'decades' depending what view
the event occurred.
#2428.
ViewUpdateEvent
no longer provides change: Unit
.localization.startOfTheWeek
. This allows setting the start of the week.numberingSystem
to DateTimeFormatOptions
meta
property to options.localization.dayViewHeaderFormat
no longer takes a
string but instead accepts a DateTimeFormatOptions
. This will allow for more customization. #2420
display.inputFormat
now takes a function, not an
Intl format. It has also been moved to hooks.inputFormat
By default a function will be executed
that uses Intl to format the selected date(s) based on the selected components.
hooks.inputParse
set(value: any, index?: number, from: string = 'date.set')
that tries to
conver the value
provided and then tries to set that value to the index
(or 0 if not
using multidate).
Unit
and DateTimeFormatOptions
from the DateTime class.togglePeriod
to toggleMeridiem
toggleMeridiem
class to AM/PM buttonDateTime
which is an extended javascript Date
object.tooltip
to localization
tooltip.prevMonth
to localization.previousMonth
tooltip.prevYear
to localization.previousYear
tooltip.prevDecade
to localization.previousDecade
tooltip.prevCentury
to localization.previousCentury
dayViewHeaderFormat
to localization.dayViewHeaderFormat
dayViewHeaderFormat
now takes a javascript intl
month option, e.g.
long
(default)
locale
to localization
useStrict
timeZone
format
display.inputFormat
that takes DateTimeFormatOptions
;collapse
extraFormats
widgetParent
widgetPositioning
viewMode
from 'times' | 'days'
to 'clock' |
'calendar'
allowMultidate
and multidateSeparator
to multipleDates
and
multipleDatesSeparator
restrictions
display
{ from: DateTime, to: DateTime }
dateOptions
on the element data set. jQuery hid allowing an object by looping
through the properties
keybindings
- this might come back laterreadonly<
ignoreReadonly<
focusOnShow<
Namespace.Css.*
in the consts.ts
filebootstrap-datetimepicker-widget
to tempus-dominus-widget
tempusDominus-bootstrap-datetimepicker-widget-with-calendar-weeks
to tempus-dominus-with-calendar-weeks
(
v5)
.input-group [data-toggle="datetimepicker"]
setting the cursor type to
pointer.
datepicker
to date-container
datepicker-decades
to date-container-decades
datepicker-years
to date-container-years
datepicker-months
to date-container-months
datepicker-days
to date-container-days
prev
to previous
data-day
to data-value
to be consistent with other viewsusetwentyfour
to useTwentyfour
timepicker
to time-container
timepicker-hour
to time-container-hour
timepicker-minute
to time-container-minute
timepicker-second
to time-container-second
Saas file is now called tempus-dominus.scss
. The "build" file has been deleted as it's
no longer required.
isInvalid
to isValid
and flipped the boolean (v5)undefined
instead of false when the date is being cleareddatetimepicker
to tempus-dominus
datetimepicker
to td
Version 5 was a rewrite of v4 taking some pending pull requests and fixes along with it. Unfortunately, I didn't do a very good job at documenting those changes.
The chang log from v2-v4 can be read here.