Angular 2+具有多个日期选择的日历 [英] Calendar with multiple date selection for Angular 2+
问题描述
我需要显示一个日历并让用户选择多个日期-例如2017年1月2日,2017年1月3日,2017年1月4日.那不是范围,而是多个日期.
I need to show a calendar and let the user pick multiple dates - e.g. 1/2/2017, 1/3/2017, 1/4/2017. That is, not a range, but multiple dates.
在Angular 1.x中,我在UI顶部使用了 gm.datepickerMultiSelect 指令引导程序即可完成此任务.
In Angular 1.x, I used the gm.datepickerMultiSelect directive on top of UI Bootstrap to accomplish this.
我无法使用ng-bootstrap
或PrimeNg
或其他一些库找到针对Angular 2+的解决方案.任何观点将不胜感激.
I am not able to find such solution for Angular 2+, either using ng-bootstrap
or PrimeNg
or some other library. Any points will be much appreciated.
推荐答案
我从类似的帖子中找到了此工具: https://github.com/xtianus79/multiple-date-picker-a2
I found this tool from a similar post: https://github.com/xtianus79/multiple-date-picker-a2
您可以尝试一下,看看它是否符合您的需求?
Can you try that out and see if it fits your needs?
这篇关于Angular 2+具有多个日期选择的日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!