This repository has been archived by the owner on Jun 19, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(slide-box-disabled): add new option to disable the slidebox on t…
…he month and year views Closes #292
- Loading branch information
Matt Lewis
committed
Feb 27, 2016
1 parent
e624c68
commit da92130
Showing
11 changed files
with
52 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
angular | ||
.module('mwl.calendar.docs') | ||
.controller('SlideBoxDisabledCtrl', function(moment) { | ||
|
||
var vm = this; | ||
|
||
vm.events = [ | ||
{ | ||
title: 'Increments the badge total on the day cell', | ||
type: 'warning', | ||
startsAt: moment().startOf('month').toDate(), | ||
incrementsBadgeTotal: true | ||
}, | ||
{ | ||
title: 'Does not increment the badge total ', | ||
type: 'info', | ||
startsAt: moment().startOf('month').toDate(), | ||
incrementsBadgeTotal: false | ||
} | ||
]; | ||
|
||
vm.calendarView = 'month'; | ||
vm.viewDate = moment().startOf('month').toDate(); | ||
|
||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<div ng-controller="SlideBoxDisabledCtrl as vm"> | ||
<ng-include src="'calendarControls.html'"></ng-include> | ||
<mwl-calendar | ||
events="vm.events" | ||
view="vm.calendarView" | ||
view-date="vm.viewDate" | ||
slide-box-disabled="true"> | ||
</mwl-calendar> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters