mattlewis92 / angular-bootstrap-calendar

A port of the bootstrap calendar widget to AngularJS (no jQuery required!)
https://mattlewis92.github.io/angular-bootstrap-calendar/
MIT License
798 stars 369 forks source link

Feature Request: Configuration to show/hide the week number label #653

Closed ShrinivasKattimani closed 7 years ago

ShrinivasKattimani commented 7 years ago

Can we have a configuration to show/hide the week number label? I tried the following and it worked.

  1. Added a new key under calendarConfig constants:
    angular
    .module('mwl.calendar')
    .constant('calendarConfig', {
    .
    .
     showWeekNumberLabel: false,
    .
    .
    });
  2. And then included a condition in calendar month cell template: <div class=\"cal-week-box-cell\" ng-if=\"$first && rowHovered && calendarConfig.showWeekNumberLabel\">\n <span ng-bind=\"vm.getWeekNumberLabel(day)\"></span>\n </div>

Please do consider this feature.

mattlewis92 commented 7 years ago

You can hide this with CSS:

.cal-week-box-cell {
  display: none;
}

Hope that helps! :)