Optional. Allows for custom formatting of date values selected by the date picker, before they are fed back to the model. This must be a function that takes a Date object and returns a string. By default, the locale date format is used via Date.prototype.toLocaleDateString().
+
+
parse-date
+
Optional. Allows for custom parsing of date values coming from the model. This must be a function that takes a string and returns a Date object. By default, the Date constructor is used.
+
+
on-date-selected
+
Optional. Expression to evaluate when a date is picked. This is a convenience feature to do things like close a calendar dropdown when a date is picked, especially for cases where watching the model for changes may not be enough. Example:on-date-selected="closeDropdown()"
+
+
+
Theming
+
+
You can override the styles defined in angular-date-picker.css to match the style of your application. The classes and specifiers that are used are:
+
+
+
.angular-date-picker
+
The top-level container for the entire calendar.
+
+
.angular-date-picker > ._month
+
The header containing the month and year.
+
+
.angular-date-picker > ._month > button
+
The previous month and next month buttons.
+
+
.angular-date-picker > ._month > button._previous
+
The previous month button.
+
+
.angular-date-picker > ._month > button._next
+
The next month button.
+
+
.angular-date-picker > ._days
+
The container that holds day of week headers and days of the month.
+
+
.angular-date-picker > ._days > ._day-of-week
+
A day of week header.
+
+
.angular-date-picker > ._days > ._day
+
Any day.
+
+
.angular-date-picker > ._days > ._day.-padding
+
A day that falls outside the selected month. These days are not selectable.
+
+
.angular-date-picker > ._days > ._day.-selectable
+
A day of the selected month. These days are selectable. This is the opposite of .-padding.