jsmodules / angular-material-calendar

A calendar directive for AngularJS and Angular Material Design
https://angular-material-calendar.bradb.net/
Mozilla Public License 2.0
182 stars 86 forks source link

How can I specify Calendar min date and max date? #73

Open goldandsilver opened 8 years ago

goldandsilver commented 8 years ago

This looks like a great calendar. Is there an option to limit the calendar to a specific min date and max date?

gavinbarron commented 8 years ago

What's the use case? preventing the user moving the calendar outside of a given date range? or preventing selection outside of the range?

goldandsilver commented 8 years ago

I would prefer both. I had actually implemented this is the copy I downloaded but in the end had to use ui-bootstrap date picker instead because angular material is not compatible with ie9. I hope to return to using the angular-material-calendar once we move away from support for ie9.

The functionality that I need to add was

  1. limiting the calendar/selection to only show dates within the min and max dates (grey out other days in the months that the min and max dates fall).
  2. I was using two calendars side by side - one for the start date and one for the end date. If the user chooses a start date that is after the end date or an end date that is before the start date, I need to display a popup with an error message
  3. I needed to show the calendar in spanish instead of english

Thank you and keep up the great work!

Zeldy Stern Senior Software Engineer

ACHIEVE3000 1985 Cedar Bridge Avenue, Ste 3 Lakewood, NJ 08701 732.415.1398 www.Achieve3000.comhttp://www.achieve3000.com/ The Leader In Differentiated Instruction

From: Gavin Barron notifications@github.com<mailto:notifications@github.com> Reply-To: jsmodules/angular-material-calendar reply@reply.github.com<mailto:reply@reply.github.com> Date: Tuesday, June 21, 2016 at 6:35 AM To: jsmodules/angular-material-calendar angular-material-calendar@noreply.github.com<mailto:angular-material-calendar@noreply.github.com> Cc: Zeldy Stern zeldy.stern@achieve3000.com<mailto:zeldy.stern@achieve3000.com>, Author author@noreply.github.com<mailto:author@noreply.github.com> Subject: Re: [jsmodules/angular-material-calendar] How can I specify Calendar min date and max date? (#73)

What's the use case? preventing the user moving the calendar outside of a given date range? or preventing selection outside of the range?

You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/jsmodules/angular-material-calendar/issues/73#issuecomment-227332239, or mute the threadhttps://github.com/notifications/unsubscribe/ASpKeHWdOu9-JIzn_5jy1Cxug67P9ycgks5qN1wagaJpZM4IlRNC.