【问题标题】:Bootstrap datepicker modify to take two dates引导 datepicker 修改以获取两个日期
【发布时间】:2014-06-13 14:59:48
【问题描述】:

我想将 bootstrap datepicker 转换为 angular:https://github.com/angular-ui/bootstrap/blob/master/src/datepicker/datepicker.js

所以它会表现得像这样:http://multidatespickr.sourceforge.net/

我对 Angular 并不完全陌生,但有人能告诉我将引导日期选择器转换为允许选择两个日期有多难吗?或将 multidatepickr 更改为 Angular 指令?

【问题讨论】:

  • Angular-UI-Bootstrap 项目已经将 Bootstrap Datepicker 转换为 Angular 指令:angular-ui.github.io/bootstrap 如果它不能完全满足您的需求,也许您可​​以分叉 Github 库并添加到它.

标签: jquery angularjs datepicker angularjs-directive


【解决方案1】:

查看 dangrossman 的 Bootstrap-Daterangepicker。它是 Bootstrap 日期选择器的扩展,用于选择两个选定日期之间的日期范围。

在转换您链接的 multidatepickr jquery-ui 插件方面,网上有许多关于如何将 jquery 插件转换为角度指令的教程。您可以阅读使用此example 或此相关stackoverflow question

【讨论】:

  • 谢谢亚历克斯! DateRangePicker 看起来非常可靠,并且似乎完美地完成了这项工作!谢谢!
猜你喜欢
  • 2014-12-09
  • 1970-01-01
  • 2012-05-23
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2021-11-06
  • 1970-01-01
相关资源
最近更新 更多