【发布时间】:2015-11-12 16:26:17
【问题描述】:
我正在使用 https://angular-ui.github.io/bootstrap/#/datepicker 中所示的角度引导日期选择器(使用弹出窗口)。 某些日期、月份和年份被禁用,我希望所有这些都被启用没有限制它们中的任何一个如何启用它
【问题讨论】:
标签: jquery datepicker angular-ui-bootstrap
我正在使用 https://angular-ui.github.io/bootstrap/#/datepicker 中所示的角度引导日期选择器(使用弹出窗口)。 某些日期、月份和年份被禁用,我希望所有这些都被启用没有限制它们中的任何一个如何启用它
【问题讨论】:
标签: jquery datepicker angular-ui-bootstrap
不要设置date-disabled 选项。默认情况下,将其设置为 null 意味着所有日期都已启用。
编辑:
工作 plnkr 在这里http://plnkr.co/edit/3NlxBCQGKyAQm1B4EP0t?p=preview
它对 Angular UI 日期选择器示例 (https://angular-ui.github.io/bootstrap/#/datepicker) 的完整编辑。
检查内联示例。启用所有日期/年/月。 min-date 禁用任何更早的日期。不要指定它,所有日期都已启用。
【讨论】: