问题
The following datepicker, has only Month and Day, with no year as intended. However, it does not have a Month selector as the picture below. How do I fix to allow a Month Picker, with no year? Trying to modify code from the question below .
Angular Material DatePicker: Month and Day, Exclude Year
https://stackblitz.com/edit/angular-hw54xf
It probably needs to be injected in the periodLabel row below.
<div class="example-header">
<button mat-icon-button (click)="previousClicked('month')">
<mat-icon>keyboard_arrow_left</mat-icon>
</button>
<span class="example-header-label">{{periodLabel}}</span> <!-- probably need to add code in this line -->
<button mat-icon-button (click)="nextClicked('month')">
<mat-icon>keyboard_arrow_right</mat-icon>
</button>
</div>
来源:https://stackoverflow.com/questions/60840203/angular-material-datepicker-month-and-day-picker-with-selector