Skip to content

Commit

Permalink
fix: add template for displaying things in the top center of interact…
Browse files Browse the repository at this point in the history
…ive data view (onecx#246)

* fix: add template for displaying things in the top center of interactive data view

* fix: fix implementation

---------

Co-authored-by: kim.tran <[email protected]>
  • Loading branch information
KimFFVII and kim.tran authored May 7, 2024
1 parent 0a1906e commit d1098be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@
(dataViewLayoutChange)="onDataViewLayoutChange($event)"
></ocx-data-layout-selection>

<div *ngIf="topCenter">
<ng-container [ngTemplateOutlet]="topCenter"> </ng-container>
</div>

<div *ngIf="layout !== 'table'" class="flex align-items-center gap-2">
<ocx-data-list-grid-sorting
[sortDirection]="sortDirection"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,8 @@ export class InteractiveDataViewComponent implements OnInit {
@ContentChild('numberTableCell') numberTableCell: TemplateRef<any> | undefined
@ContentChild('gridItem') gridItem: TemplateRef<any> | undefined
@ContentChild('listItem') listItem: TemplateRef<any> | undefined

@ContentChild('topCenter') topCenter: TemplateRef<any> | undefined

@Output() filtered = new EventEmitter<Filter[]>()
@Output() sorted = new EventEmitter<Sort>()
@Output() deleteItem = new EventEmitter<RowListGridData>()
Expand Down

0 comments on commit d1098be

Please sign in to comment.