Skip to content

Commit 85fcf9d

Browse files
committed
refactor: TT-382 changes in the lengthMenu property of the datatable
1 parent c66cae3 commit 85fcf9d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/app/modules/reports/components/time-entries-table/time-entries-table.component.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,13 @@ import { getReportDataSource } from '../../../time-clock/store/entry.selectors';
1515
styleUrls: ['./time-entries-table.component.scss'],
1616
})
1717
export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewInit {
18+
selectOptionValues = [15, 30, 50, 100, -1];
19+
selectOptionNames = [15, 30, 50, 100, 'All'];
1820
dtOptions: any = {
1921
scrollY: '590px',
2022
dom: '<"d-flex justify-content-between"B<"d-flex"<"mr-5"l>f>>rtip',
2123
pageLength: 30,
22-
lengthMenu: [[15, 30, 50, 100, -1], [15, 30, 50, 100, 'All']],
24+
lengthMenu: [this.selectOptionValues, this.selectOptionNames],
2325
buttons: [
2426
{
2527
extend: 'colvis',

0 commit comments

Comments
 (0)