Angular material datepicker - add content (close button)

别等时光非礼了梦想. 提交于 2020-01-06 08:44:26

问题


i am trying to add a button to my angular material datepicker. The button should be added in the top right corner and should close the datepicker on click.

Also i am trying to add additional content inside my datepicker. Since i have disabled dates inside my datepicker i want to add some kind of legend which says that gray dates don't hold any data and therefore can't be selected.

Is there any possibility in adding additional divs or buttons?

Thanks


回答1:


In this case, you need to design your own datepicker with Angular Material Component Development Kit (CDK).



来源:https://stackoverflow.com/questions/47555578/angular-material-datepicker-add-content-close-button

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!