mirror of
https://github.com/DeviceFarmer/stf.git
synced 2026-04-21 05:15:17 +02:00
Starting to add Dynamic columns selector.
This commit is contained in:
@@ -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]]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user