Skip to content

Commit 37c28ca

Browse files
authored
TT-382 Changes in report datatable (#763)
* refactor: TT-382 change in the range of report records * refactor: TT-382 configuration of the dom and lengthMenu of the datatable * refactor: TT-382 changes in the lengthMenu property of the datatable
1 parent 89cff13 commit 37c28ca

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

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

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +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',
20-
dom: 'Bfrtip',
22+
dom: '<"d-flex justify-content-between"B<"d-flex"<"mr-5"l>f>>rtip',
23+
pageLength: 30,
24+
lengthMenu: [this.selectOptionValues, this.selectOptionNames],
2125
buttons: [
2226
{
2327
extend: 'colvis',

0 commit comments

Comments
 (0)