Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

feat(dayView): remove the day view column header

BREAKING CHANGE: the day view column header has been removed

Closes #293
  • Loading branch information...
Matt Lewis
Matt Lewis committed Feb 27, 2016
1 parent 66277a1 commit e624c68c8b46945563641d86bf39bbf6b85d07c9
@@ -207,7 +207,7 @@ angular.module('myModule') = 'ddd D MMM'; //this will configure the day view title to be shorter
calendarConfig.i18nStrings.eventsLabel = 'Events'; //This will set the events label on the day view
calendarConfig.i18nStrings.weekNumber = 'Week {week}'; //This will set the week number hover label on the month view
calendarConfig.displayAllMonthEvents = true; //This will display all events on a month view even if they're not in the current month. Default false.
@@ -10,8 +10,6 @@ angular

calendarConfig.dateFormatter = 'moment'; // use moment instead of angular for formatting dates
var originali18n = angular.copy(calendarConfig.i18nStrings);
calendarConfig.i18nStrings.eventsLabel = 'Des événements';
calendarConfig.i18nStrings.timeLabel = 'Temps';
calendarConfig.i18nStrings.weekNumber = 'Semaine {week}';

$window.moment = $window.moment || moment;
@@ -4,11 +4,10 @@ var angular = require('angular');

.controller('MwlCalendarDayCtrl', function($scope, $sce, moment, calendarHelper, calendarConfig) {
.controller('MwlCalendarDayCtrl', function($scope, $sce, moment, calendarHelper) {

var vm = this;

vm.calendarConfig = calendarConfig;
vm.$sce = $sce;

$scope.$on('calendar.refreshView', function() {
@@ -50,8 +50,6 @@ angular
showTimesOnWeekView: false,
displayAllMonthEvents: false,
i18nStrings: {
eventsLabel: 'Events',
timeLabel: 'Time',
weekNumber: 'Week {week}'
templates: {}
@@ -1,9 +1,4 @@
<div class="cal-day-box">
<div class="row-fluid clearfix cal-row-head">
<div class="span1 col-xs-1 cal-cell" ng-bind="vm.calendarConfig.i18nStrings.timeLabel"></div>
<div class="span11 col-xs-11 cal-cell" ng-bind="vm.calendarConfig.i18nStrings.eventsLabel"></div>

<div class="cal-day-panel clearfix" ng-style="{height: vm.dayViewHeight + 'px'}">


0 comments on commit e624c68

Please sign in to comment.
You can’t perform that action at this time.