Angular 2+具有多个日期选择的日历 [英] Calendar with multiple date selection for Angular 2+

查看:173
本文介绍了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-bootstrapPrimeNg或其他一些库找到针对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屋!

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