1

他们是在 ngx-bootstrap 的 datepicker 中激活多选的方法吗?我在这里找到了一个 hack ,但这是使用angularjs但我目前正在开发的Angular 2。谁能帮忙。

4

2 回答 2

1

你试过这个吗

https://github.com/xtianus79/multiple-date-picker-angular

它也有不错的文档

于 2017-10-04T09:43:14.300 回答
0

添加多选的问题是添加多取消选择,您可以深入研究 Datepicker 实现

通过覆盖https://github.com/valor-software/ngx-bootstrap/blob/development/src/datepicker/themes/bs/bs-datepicker-container.component.ts#L59-L64

实施和修改日点击处理程序,您可以获得您想要的任何行为,在最近的时间我们将添加有关如何自定义日期选择器的深入文档

于 2017-10-04T09:45:38.430 回答