取下角的UI引导日期选择一周的列和按钮按钮、日期、下角、UI

2023-09-13 02:52:31 作者:单身成瘾i

我使用角UI datepicker的引导。现在,我需要从日期选择删除#(周)列和周按钮。此日期选取器在我的应用程序的许多形式被使用。我想从它们全部删除周列。

I am using angular-ui bootstrap datepicker. Now I need to remove #(week) column and week button from datepicker. This date picker is being used in many forms of my application. I want to remove week column from all of them.

对于这一点,我已经在全球范围配置的datepickerConfig(显示周),但它仍然是行不通的。任何人都可以请让我知道我做错了这个?

For this, I had globally configured the datepickerConfig (show-weeks) but still it is not working. Can anyone please let me know I am doing wrong with this?

推荐答案

请,看看下面这个例子:http://plnkr.co/edit/6i4G7JkvBiWXZYlrV2GL?p=$p$pview

Please, look at this example: http://plnkr.co/edit/6i4G7JkvBiWXZYlrV2GL?p=preview

angular.module('app', ['ui.bootstrap'])
  .config(function (datepickerConfig) {
      datepickerConfig.showWeeks = false;
    });