(js) Make events clickable in month view

This commit is contained in:
Francis Lachapelle committed 2015-08-07 15:32:00 -04:00
1 parent 8ab591a1b6
commit ce8a4b6d8a
6 files changed
+34 -28

No files matched your search

@@ -14,20 +14,22 @@
<sg-calendar-monh-day
sg-blocks="calendar.blocks"
sg-day="20150408" />
sg-day="20150408"
sg-click="open({ event: clickEvent, component: clickComponent })"/>
*/
function sgCalendarMonthDay() {
return {
restrict: 'E',
scope: {
blocks: '=sgBlocks',
day: '@sgDay'
day: '@sgDay',
clickBlock: '&sgClick'
},
replace: true,
template: [
'<sg-calendar-month-event',
' ng-repeat="block in blocks[day]"',
' sg-block="block"/>'
' sg-block="block"',
' sg-click="clickBlock({event: clickEvent, component: clickComponent})"/>'
].join('')
};
}