All Downloads are FREE. Search and download functionalities are using the official Maven repository.

www.js.directives.table.reorderable.js Maven / Gradle / Ivy

// Generated by CoffeeScript 1.5.0
(function() {
  var module;

  module = angular.module('swing.directives.table');

  module.directive("reorderable", function($parse) {
    return {
      restrict: 'A',
      link: function(scope, element, attrs) {
        var reorderableModel;
        reorderableModel = $parse(attrs.reorderable);
        return element.reorderabletable({
          stop: function(newOrder) {
            var _this = this;
            return scope.$apply(function() {
              return reorderableModel(scope)(newOrder);
            });
          }
        });
      }
    };
  });

}).call(this);




© 2015 - 2025 Weber Informatics LLC | Privacy Policy