How to add close button to customized mat-datepicker-header
问题 I am using this UI component from the Angular material. https://material.angular.io/components/datepicker/overview#customizing-the-calendar-header I want to add close button the custom header but it seems not possible yet. At least I would like to get output event from the date picker header component. 回答1: As the MatDatepicker and MatCalendarHeader are two separate components, you will need to pass data between the components using an EventEmitter , or with BehaviourSubject through the use