Last active
April 16, 2019 23:07
-
-
Save jamesdixon/25c9530a77f6983539ed722b481f25b7 to your computer and use it in GitHub Desktop.
power-calendar-multiple-test
This file contains hidden or 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
import Controller from '@ember/controller'; | |
import { computed } from '@ember/object'; | |
import { | |
add, | |
} from 'ember-power-calendar-utils'; | |
export default Controller.extend({ | |
center: new Date('2016-05-17'), | |
selected: null, | |
nextMonthsCenter: computed('center', function() { | |
return add(this.center, 1, 'month'); | |
}), | |
months: computed('', function() { | |
return [ | |
new Date('2016-01-15'), | |
new Date('2016-02-15'), | |
new Date('2016-03-15'), | |
new Date('2016-04-15'), | |
new Date('2016-05-15'), | |
new Date('2016-06-15'), | |
new Date('2016-07-15'), | |
new Date('2016-08-15'), | |
new Date('2016-09-15'), | |
new Date('2016-10-15'), | |
new Date('2016-11-15'), | |
new Date('2016-12-15'), | |
]; | |
}), | |
}); |
This file contains hidden or 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
{ | |
"version": "0.15.1", | |
"EmberENV": { | |
"FEATURES": {} | |
}, | |
"options": { | |
"use_pods": false, | |
"enable-testing": false | |
}, | |
"dependencies": { | |
"jquery": "https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js", | |
"ember": "3.4.3", | |
"ember-template-compiler": "3.4.3", | |
"ember-testing": "3.4.3" | |
}, | |
"addons": { | |
"ember-data": "3.4.2", | |
"ember-power-calendar": "0.12.0", | |
"ember-power-calendar-moment": "0.1.6" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment