angular-gantt
Version:
Gantt chart component for AngularJS
15 lines (13 loc) • 495 B
JavaScript
(function(){
'use strict';
angular.module('gantt').directive('ganttHorizontalScrollReceiver', function() {
// The element with this attribute will scroll at the same time as the scrollSender element
return {
restrict: 'A',
require: '^ganttScrollManager',
link: function(scope, element, attrs, ganttScrollManagerCtrl) {
ganttScrollManagerCtrl.registerHorizontalReceiver(element);
}
};
});
}());