/* -*- Mode: javascript; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ (function() { 'use strict'; /* * sgCalendarDayTable - Build list of blocks for a specific day * @memberof SOGo.SchedulerUI * @restrict element * @param {object} sgBlocks - the events blocks definitions for the current view * @param {string} sgDay - the day of the events to display * @param {function} sgClick - the function to call when clicking on a block. * Two variables are available: event (the event that triggered the mouse click), * and component (a Component object) * * @example: */ function sgCalendarDayTable() { return { restrict: 'E', scope: { blocks: '=sgBlocks', day: '@sgDay', clickBlock: '&sgClick' }, template: [ '' ].join('') }; } angular .module('SOGo.SchedulerUI') .directive('sgCalendarDayTable', sgCalendarDayTable); })();