|
710 | 710 | </file> |
711 | 711 | </example> |
712 | 712 | */ |
713 | | - module.directive('uiGridSelection', ['uiGridSelectionConstants', 'uiGridSelectionService', '$templateCache', 'uiGridConstants', |
714 | | - function (uiGridSelectionConstants, uiGridSelectionService, $templateCache, uiGridConstants) { |
| 713 | + module.directive('uiGridSelection', ['uiGridSelectionConstants', 'uiGridSelectionService', 'uiGridConstants', |
| 714 | + function (uiGridSelectionConstants, uiGridSelectionService, uiGridConstants) { |
715 | 715 | return { |
716 | 716 | replace: true, |
717 | 717 | priority: 0, |
|
907 | 907 | * @description Stacks on top of ui.grid.uiGridCell to provide selection feature |
908 | 908 | */ |
909 | 909 | module.directive('uiGridCell', |
910 | | - ['$compile', 'uiGridConstants', 'uiGridSelectionConstants', 'gridUtil', '$parse', 'uiGridSelectionService', |
911 | | - function ($compile, uiGridConstants, uiGridSelectionConstants, gridUtil, $parse, uiGridSelectionService) { |
| 910 | + ['uiGridConstants', 'uiGridSelectionService', |
| 911 | + function (uiGridConstants, uiGridSelectionService) { |
912 | 912 | return { |
913 | 913 | priority: -200, // run after default uiGridCell directive |
914 | 914 | restrict: 'A', |
|
934 | 934 | $scope.grid.options.noUnselect); |
935 | 935 | $scope.$apply(); |
936 | 936 | } |
937 | | - |
938 | | - // uiGridCellNavService.scrollToIfNecessary(uiGridCtrl.grid, rowCol.row, rowCol.col); |
939 | 937 | }); |
940 | 938 | } |
941 | 939 |
|
942 | | - // $elm.bind('keydown', function (evt) { |
943 | | - // if (evt.keyCode === 32 && $scope.col.colDef.name === "selectionRowHeaderCol") { |
944 | | - // uiGridSelectionService.toggleRowSelection($scope.grid, $scope.row, evt, ($scope.grid.options.multiSelect && !$scope.grid.options.modifierKeysToMultiSelect), $scope.grid.options.noUnselect); |
945 | | - // $scope.$apply(); |
946 | | - // } |
947 | | - // }); |
948 | | - |
949 | 940 | var selectCells = function (evt) { |
950 | 941 | // if you click on expandable icon doesn't trigger selection |
951 | 942 | if (evt.target.className === "ui-grid-icon-minus-squared" || evt.target.className === "ui-grid-icon-plus-squared") { |
|
1042 | 1033 | }; |
1043 | 1034 | }]); |
1044 | 1035 |
|
1045 | | - module.directive('uiGridGridFooter', ['$compile', 'uiGridConstants', 'gridUtil', function ($compile, uiGridConstants, gridUtil) { |
| 1036 | + module.directive('uiGridGridFooter', ['$compile', 'gridUtil', function ($compile, gridUtil) { |
1046 | 1037 | return { |
1047 | 1038 | restrict: 'EA', |
1048 | 1039 | replace: true, |
|
0 commit comments