Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disable weekends from the calendar #105

Open
sachilaRanawaka opened this issue Apr 6, 2017 · 2 comments
Open

disable weekends from the calendar #105

sachilaRanawaka opened this issue Apr 6, 2017 · 2 comments

Comments

@sachilaRanawaka
Copy link

sachilaRanawaka commented Apr 6, 2017

how can I disable certain days in the calendar? As an example, i want to disable all the weekends.
here is my code

<input time="false" date="true" mdc-datetime-picker type="text" id="date" placeholder="Date" ng-model="date" min-date="minDate" max-date="maxDate" disable-dates="dates">

@hexadecy
Copy link

hexadecy commented Apr 7, 2017

Current implementation is for specific date object in an array:

 $scope.dates = [new Date('2016-11-14T00:00:00'), new Date('2016-11-15T00:00:00'),
        new Date('2016-11-30T00:00:00'), new Date('2016-12-12T00:00:00'), new Date('2016-12-13T00:00:00'),
        new Date('2016-12-31T00:00:00')];

hexadecy added a commit to beenote/angular-material-datetimepicker that referenced this issue Jul 31, 2017
@hexadecy
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants