Skip to content

Commit

Permalink
Merge pull request #15463 from primefaces/issue-15462
Browse files Browse the repository at this point in the history
Fixed #15462 - ColumnFilter | add onShow & onHide events
  • Loading branch information
cetincakiroglu authored May 6, 2024
2 parents 9df3367 + 2c3eb56 commit 665ce7b
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 655 deletions.
14 changes: 14 additions & 0 deletions src/app/components/table/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5264,6 +5264,18 @@ export class ColumnFilter implements AfterContentInit {
* @group Props
*/
@Input() ariaLabel: string | undefined;
/**
* Callback to invoke on overlay is shown.
* @param {AnimationEvent} originalEvent - animation event.
* @group Emits
*/
@Output() onShow: EventEmitter<{originalEvent: AnimationEvent}> = new EventEmitter<{originalEvent: AnimationEvent}>();
/**
* Callback to invoke on overlay is hidden.
* @param {AnimationEvent} originalEvent - animation event.
* @group Emits
*/
@Output() onHide: EventEmitter<{originalEvent: AnimationEvent}> = new EventEmitter<{originalEvent: AnimationEvent}>();

@ViewChild('icon') icon: Nullable<ElementRef>;

Expand Down Expand Up @@ -5596,6 +5608,7 @@ export class ColumnFilter implements AfterContentInit {
};

this.overlaySubscription = this.overlayService.clickObservable.subscribe(this.overlayEventListener);
this.onShow.emit({originalEvent: event})
break;

case 'void':
Expand All @@ -5615,6 +5628,7 @@ export class ColumnFilter implements AfterContentInit {
break;
case 'void':
ZIndexUtils.clear(event.element);
this.onHide.emit({originalEvent: event})
break;
}
}
Expand Down
Loading

0 comments on commit 665ce7b

Please sign in to comment.