[Groonga-commit] groonga/groonga-admin at 71592c0 [master] Add drilldown on/off UI

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Nov 7 17:20:59 JST 2014


Kouhei Sutou	2014-11-07 17:20:59 +0900 (Fri, 07 Nov 2014)

  New Revision: 71592c0d26c6c9fcf1d34648f10d6aa185a1a531
  https://github.com/groonga/groonga-admin/commit/71592c0d26c6c9fcf1d34648f10d6aa185a1a531

  Message:
    Add drilldown on/off UI
    
    It doesn't work yet.

  Modified files:
    app/scripts/controllers/table-search-controller.js
    app/views/tables/search.html

  Modified: app/scripts/controllers/table-search-controller.js (+12 -2)
===================================================================
--- app/scripts/controllers/table-search-controller.js    2014-11-07 17:12:35 +0900 (3a5dd58)
+++ app/scripts/controllers/table-search-controller.js    2014-11-07 17:20:59 +0900 (95cc70c)
@@ -127,7 +127,12 @@ angular.module('groongaAdminApp')
       if (outputColumns) {
         inUse = outputColumns.indexOf(name) !== -1;
       }
-      $scope.outputColumns.push({name: name, inUse: inUse});
+      var drilldown = false;
+      $scope.outputColumns.push({
+        name: name,
+        inUse: inUse,
+        drilldown: drilldown
+      });
     }
 
     function extractColumnsInfo(table, columns) {
@@ -159,7 +164,12 @@ angular.module('groongaAdminApp')
           if (matchColumns) {
             inUse = matchColumns.indexOf(localName) !== -1;
           }
-          $scope.indexedColumns.push({name: localName, inUse: inUse});
+          var drilldown = false;
+          $scope.indexedColumns.push({
+            name: localName,
+            inUse: inUse,
+            drilldown: drilldown
+          });
         });
       });
     }

  Modified: app/views/tables/search.html (+5 -0)
===================================================================
--- app/views/tables/search.html    2014-11-07 17:12:35 +0900 (9dbbffd)
+++ app/views/tables/search.html    2014-11-07 17:20:59 +0900 (2e47cbe)
@@ -13,6 +13,9 @@
           <tr>
             <th>Name</th>
             <th>Output</th>
+            <th>
+              <span title="Drilldown" class="glyphicon glyphicon-filter"></span>
+            </th>
           </tr>
         </thead>
         <tbody>
@@ -20,6 +23,8 @@
             <td>{{outputColumn.name}}</td>
             <td><input type="checkbox"
                        ng-model="outputColumn.inUse"></td>
+            <td><input type="checkbox"
+                       ng-model="outputColumn.drilldown"></td>
           </tr>
         </tbody>
       </table>
-------------- next part --------------
HTML����������������������������...
下載 



More information about the Groonga-commit mailing list
Back to archive index