Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
refactor: TT-382 changes in the lengthMenu property of the datatable
  • Loading branch information
JosueOb committed Oct 19, 2021
commit 85fcf9df92e1bd2042ec3da433f85fa820502a0e
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,13 @@ import { getReportDataSource } from '../../../time-clock/store/entry.selectors';
styleUrls: ['./time-entries-table.component.scss'],
})
export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewInit {
selectOptionValues = [15, 30, 50, 100, -1];
selectOptionNames = [15, 30, 50, 100, 'All'];
dtOptions: any = {
scrollY: '590px',
dom: '<"d-flex justify-content-between"B<"d-flex"<"mr-5"l>f>>rtip',
pageLength: 30,
lengthMenu: [[15, 30, 50, 100, -1], [15, 30, 50, 100, 'All']],
lengthMenu: [this.selectOptionValues, this.selectOptionNames],
buttons: [
{
extend: 'colvis',
Expand Down