Skip to content

Commit

Permalink
fix(core/reports): paginated dynamic table should be exportable
Browse files Browse the repository at this point in the history
  • Loading branch information
sara-gnucoop committed Oct 28, 2022
1 parent 755165a commit cf182f6
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion projects/core/reports/src/widget-export.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ajf-widget-export {
.ajf-export-menu {
position: absolute;
right: 0;
top: 0;
top: 20px;

&.ajf-export-menu-overlay {
display: none;
Expand Down
1 change: 1 addition & 0 deletions projects/core/reports/src/widget-export.ts
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ export class AjfWidgetExport {
break;
case AjfWidgetType.DynamicTable:
case AjfWidgetType.Table:
case AjfWidgetType.PaginatedTable:
const tableData = this.data as AjfTableCell[][];
if (tableData.length > 1) {
xlsxData = [];
Expand Down
9 changes: 8 additions & 1 deletion projects/material/reports/src/paginated-table-widget.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@
</div>
</div>
<div class="ajf-paginated-table-item">
<ajf-table [data]="currentContent" (sortSelected)="sortPaginatedData($event)"></ajf-table>
<ajf-widget-export
*ngIf="instance"
[widgetType]="instance.widgetType"
[data]="currentContent"
[enable]="instance.exportable"
>
<ajf-table [data]="currentContent" (sortSelected)="sortPaginatedData($event)"></ajf-table>
</ajf-widget-export>
</div>
</div>

0 comments on commit cf182f6

Please sign in to comment.