我採用了棱角分明的材料的DateTimePicker https://github.com/logbon72/angular-material-datetimepicker如何禁用角材料週末的DateTimePicker
我想禁用角材料的DateTimePicker週末和週三日期
<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">
我可以禁用特定日期看下面的代碼
$scope.dates = [new Date('2017-04-14T00:00:00'), new Date('2017-04-20T00:00:00'),
new Date('2017-04-24T00:00:00'), new Date('2017-04-25T00:00:00'), new Date('2017-04-03T00:00:00'),
new Date('2017-04-30T00:00:00')];
請幫幫我。任何幫助,應該感激。提前致謝。
謝謝@salih Senol這些鏈接幫助了我。我改變了代碼取決於我的要求。我會在這裏發佈我的代碼。 – saravana
不客氣。乾杯:) –