luid-date-picker

A directive to pick a date in a calendar, a bit like the datepicker from angular ui bootstrap but with different options

For example you can use it with a moment, a date or any string if you provide a format

It exists inline or in a popup.

Supported arguments:

Usage

<luid-date-picker ng-model="myDate"></luid-date-picker>
<luid-date-picker ng-model="myDate" format="YYYY-MM-DD" displayed-month="3"></luid-date-picker>
<luid-date-picker-popup ng-model="myDate" display-format="dddd Do, MMMM"></luid-date-picker-popup>

Demo

Basic use, linked to a moment

My date: {{ dateMoment | luifMoment : "LL"}}

Linked to a string with format YYYY-MM-DD

My date: {{ dateStr }}

Linked to a date

My date: {{ dateDate }}


In a popup, to be easily incorporated in a form

displaying the date with the LL format but binded to a string with the L format

value in my $scope: {{ datePopup2 }}


with min/max

Select a min and max in the inputs below

validity: ng-valid ng-invalid ng-invalid-{{key}}


with custom classes

this one applies the class disabled to weekends

this one highlights the current week


In a popup, with keyboard input enabled

selected date = {{keyboardPopup}}


With multiple months displayed at once

With multiple months displayed at once in a popup