【问题标题】:Using bootstrap datepicker methods with AngularJS ui-date使用带有 AngularJS ui-date 的引导日期选择器方法
【发布时间】:2015-07-23 14:16:25
【问题描述】:

我想在 bootstrap-datepicker 中使用 setDateDisabled 方法,但不确定如何在 Angular 中使用它。

https://bootstrap-datepicker.readthedocs.org/en/latest/methods.html#setdatesdisabled

我设法很好地初始化了日期选择器

<input ui-date="datepickerOptions"  ng-model="rigDate.date" />

这在 javascript 方面

   $scope.datepickerOptions = {
            orientation: 'top',
            startDate: PayPeriodService.getStartDate(),
            endDate: PayPeriodService.getEndDate(),
            format: 'yyyy-mm-dd',
        };

使用 angular-ui

https://github.com/angular-ui/ui-date

【问题讨论】:

    标签: angularjs angular-ui bootstrap-datepicker


    【解决方案1】:

    我能够通过使用指令来使用引导日期选择器,并在指令中使用链接对象来使用 jquery 代码操作日期选择器。

    【讨论】:

      猜你喜欢
      • 2013-08-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-10-29
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多