Starting to add Dynamic columns selector.

This commit is contained in:
Gunther Brunner
2014-06-11 21:51:10 +09:00
parent f56d70cebb
commit bcde9ebefa
4 changed files with 25 additions and 4 deletions

View File

@@ -104,11 +104,17 @@ module.exports = function DeviceListCtrlDetails($scope, DeviceService, GroupServ
// TODO: Implement real dynamic colums! Using showAll is too slow
$scope.columns = [
$scope.dynamicColumns = [
{ title: 'Model', field: 'model', sortable: 'model', filter: {model: 'text'}, visible: true
}
,
{ title: 'Product', field: 'name', sortable: 'name', filter: {name: 'text'}, visible: true
}
,
{ title: 'Carrier', field: 'operator', sortable: 'operator', filter: {operator: 'text'}, visible: true
}
]
$scope.selectedColumns = [$scope.dynamicColumns[1]]
}