Simon Hunt

GUI -- Added empty table row to Applications view.

- updated table builder comments

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