UNPKG

angular-gantt

Version:

Gantt chart component for AngularJS

18 lines (14 loc) 674 B
(function(){ 'use strict'; angular.module('gantt.movable').factory('ganttMovableOptions', [function() { return { initialize: function(options) { options.enabled = options.enabled !== undefined ? options.enabled : true; options.allowMoving = options.allowMoving !== undefined ? !!options.allowMoving : true; options.allowResizing = options.allowResizing !== undefined ? !!options.allowResizing : true; options.allowRowSwitching = options.allowRowSwitching !== undefined ? !!options.allowRowSwitching : true; return options; } }; }]); }());