Skip to content

Commit

Permalink
Improve Staffign Indice grice display footer cell class
Browse files Browse the repository at this point in the history
  • Loading branch information
lomamech committed Dec 8, 2021
1 parent 0dabf77 commit cd24853
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -87,12 +87,14 @@ function StaffingIndiceController($state, $uibModal, StaffingIndice,
displayName : 'TABLE.COLUMNS.DATE',
headerCellFilter : 'translate',
cellFilter : 'date:"'.concat(bhConstants.dates.format, '"'),

},
{
field : 'display_name',
displayName : 'FORM.LABELS.EMPLOYEE_NAME',
headerCellFilter : 'translate',
aggregationType : uiGridConstants.aggregationTypes.count,
aggregationHideLabel : true,
footerCellClass : 'text-center',
},
{
field : 'text',
Expand Down Expand Up @@ -129,6 +131,7 @@ function StaffingIndiceController($state, $uibModal, StaffingIndice,
vm.gridOptions = {
appScopeProvider : vm,
enableColumnMenus : false,
showColumnFooter : true,
columnDefs : columns,
enableSorting : true,
data : [],
Expand Down
11 changes: 9 additions & 2 deletions client/src/modules/payroll/staffing_indice/staffingIndice.html
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,15 @@

<div class="flex-content">
<div class="container-fluid">
<div id="staffing-indice-grid" class="grid-full-height" ui-grid="StaffingIndiceCtrl.gridOptions" ui-grid-auto-resize
ui-grid-resize-columns ui-grid-move-columns>
<div
id="staffing-indice-grid"
class="grid-full-height-with-filters"
ui-grid="StaffingIndiceCtrl.gridOptions"
ui-grid-auto-resize
ui-grid-resize-columns
ui-grid-save-state
ui-grid-selection
ui-grid-move-columns>

<bh-grid-loading-indicator loading-state="StaffingIndiceCtrl.loading"
empty-state="StaffingIndiceCtrl.gridOptions.data.length === 0">
Expand Down

0 comments on commit cd24853

Please sign in to comment.