Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
他们是在 ngx-bootstrap 的 datepicker 中激活多选的方法吗?我在这里找到了一个 hack ,但这是使用angularjs但我目前正在开发的Angular 2。谁能帮忙。
angularjs
Angular 2
你试过这个吗
https://github.com/xtianus79/multiple-date-picker-angular
它也有不错的文档
添加多选的问题是添加多取消选择,您可以深入研究 Datepicker 实现
通过覆盖https://github.com/valor-software/ngx-bootstrap/blob/development/src/datepicker/themes/bs/bs-datepicker-container.component.ts#L59-L64
实施和修改日点击处理程序,您可以获得您想要的任何行为,在最近的时间我们将添加有关如何自定义日期选择器的深入文档