Bladeren bron

fixed lupickertable template

tags/0.1.9
Robin Thoni 9 jaren geleden
bovenliggende
commit
c3a7eeb9fc
2 gewijzigde bestanden met toevoegingen van 13 en 5 verwijderingen
  1. 1
    1
      dist/luticate-utils.min.js
  2. 12
    4
      src/lupickertable.js

+ 1
- 1
dist/luticate-utils.min.js
Diff onderdrukt omdat het te groot bestand
Bestand weergeven


+ 12
- 4
src/lupickertable.js Bestand weergeven

@@ -4,14 +4,14 @@
4 4
 
5 5
 
6 6
 angular.module('luticateUtils')
7
-    .directive('luPickerTable', ['dialogs', 'luticateDialogErrorHelper',
8
-        function(dialogs, luticateDialogErrorHelper) {
7
+    .directive('luPickerTable', [
8
+        function() {
9 9
             return {
10 10
                 restrict: 'E',
11 11
                 scope: {
12 12
                     options: '&'
13 13
                 },
14
-                templateUrl: "views/lupickertable.html",//"/luticate/lupickertable.html",
14
+                templateUrl: "/luticate/lupickertable.html",
15 15
                 link: function ($scope, element, attrs) {
16 16
 
17 17
                     $scope.pickerOptions = $scope.options();
@@ -97,5 +97,13 @@ angular.module('luticateUtils')
97 97
 
98 98
 angular.module('luticateUtils').run(['$templateCache', function($templateCache)
99 99
 {
100
-    $templateCache.put('/luticate/lupickertable.html', '');
100
+    $templateCache.put('/luticate/lupickertable.html',
101
+'<div class="col-sm-3">' +
102
+    'Selected items:' +
103
+    '<div ng-repeat="item in pickerOptions.pickedItems" ng-click="unPickItem(item)"' +
104
+            'class="col-sm-12 lu-picker-table-picked-items">' +
105
+        '{{ pickerOptions.getItemText(item) }}' +
106
+    '</div>' +
107
+'</div>' +
108
+'<lu-basic-table options="pickerOptions" class="col-sm-9"></lu-basic-table>');
101 109
 }]);

Laden…
Annuleren
Opslaan