Browse Source

fixed lupickertable template

tags/0.1.9
Robin Thoni 8 years ago
parent
commit
c3a7eeb9fc
2 changed files with 13 additions and 5 deletions
  1. 1
    1
      dist/luticate-utils.min.js
  2. 12
    4
      src/lupickertable.js

+ 1
- 1
dist/luticate-utils.min.js
File diff suppressed because it is too large
View File


+ 12
- 4
src/lupickertable.js View File

@@ -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
 }]);

Loading…
Cancel
Save