Simon Hunt

GUI -- Added empty table row to Applications view.

- updated table builder comments

Change-Id: I07f4609bdcc5b2cfd728310f701cafae33115313
...@@ -25,10 +25,13 @@ ...@@ -25,10 +25,13 @@
25 25
26 // example params to buildTable: 26 // example params to buildTable:
27 // { 27 // {
28 - // self: this, 28 + // self: this, <- controller object
29 - // scope: $scope, 29 + // scope: $scope, <- controller scope
30 - // tag: 'device' 30 + // tag: 'device', <- table identifier
31 + // selCb: selCb <- row selection callback (optional)
31 // } 32 // }
33 + // Note: selCb() is passed the row data model of the selected row,
34 + // or null when no row is selected.
32 35
33 function buildTable(o) { 36 function buildTable(o) {
34 var handlers = {}, 37 var handlers = {},
......
...@@ -24,6 +24,12 @@ ...@@ -24,6 +24,12 @@
24 </thead> 24 </thead>
25 25
26 <tbody> 26 <tbody>
27 + <tr ng-hide="ctrl.tableData.length">
28 + <td class="nodata" colspan="5">
29 + No Applications found
30 + </td>
31 + </tr>
32 +
27 <tr ng-repeat="app in ctrl.tableData" 33 <tr ng-repeat="app in ctrl.tableData"
28 ng-click="selectCallback(app)" 34 ng-click="selectCallback(app)"
29 ng-class="{selected: app === sel}" 35 ng-class="{selected: app === sel}"
......