Skip to content

Commit a5aad06

Browse files
author
Edgar Guaman
committed
style: TT-318 Improving the print option
1 parent c4c4887 commit a5aad06

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,14 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
2222
buttons: [
2323
{
2424
extend: 'colvis',
25-
columns: ':not(.hidden-col)',
25+
columns: ':not(.hidden-col),visible'
26+
},
27+
{
28+
extend: 'print',
29+
exportOptions: {
30+
columns: ':visible'
31+
}
2632
},
27-
'print',
2833
{
2934
extend: 'excel',
3035
exportOptions: {
@@ -53,7 +58,7 @@ export class TimeEntriesTableComponent implements OnInit, OnDestroy, AfterViewIn
5358
text: 'CSV',
5459
filename: `time-entries-${formatDate(new Date(), 'MM_dd_yyyy-HH_mm', 'en')}`,
5560
},
56-
],
61+
]
5762
};
5863
dtTrigger: Subject<any> = new Subject();
5964
@ViewChild(DataTableDirective, { static: false })

0 commit comments

Comments
 (0)