角材料日期选择器-添加内容(关闭按钮) [英] Angular material datepicker - add content (close button)

查看:45
本文介绍了角材料日期选择器-添加内容(关闭按钮)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将按钮添加到我的棱角材质日期选择器中. 该按钮应添加在右上角,并应在单击时关闭日期选择器.

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.

是否可以添加其他div或按钮?

Is there any possibility in adding additional divs or buttons?

谢谢

推荐答案

在这种情况下,您需要使用Angular Material Component Development Kit(CDK)设计自己的日期选择器.

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

这篇关于角材料日期选择器-添加内容(关闭按钮)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆