date
is required and is used to track which month is displayed.clickCallback
will be called with the date that was clicked.dateDisabled
callback will be called to determine if date is enabled.customClass
callback will be called to set custom styles.cheapMousernterCallback
will be called when a date is hovered. Callback must trigger $digest
manually for performance reasons.If you need further customizations you can use su-datepicker-month directive.
disable-past
attribute will disable dates less than today.is-date-disabled
callback.select-date
callback.cheap-mouseenter-callback
.custom-class
callback.header
callback.Custom template can be used by adding template-url attribute.
is-date-disabled
callback.select-date
callback.cheap-mouseenter-callback
.custom-class
callback.header
callback.Logic for opening and closing a datepicker popup is business specific. It's fairly easy to wrap a datepicker in a popup as the following example shows. The popup opens when the date field gets focus either by tabbing or clicking. If either the destination or submit get focus, or there's a click otside the datepicker the popup will close.