Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

onChangeLayout event for DataView is not emitted #17617

Open
3 of 4 tasks
docentYT opened this issue Feb 7, 2025 · 0 comments
Open
3 of 4 tasks

onChangeLayout event for DataView is not emitted #17617

docentYT opened this issue Feb 7, 2025 · 0 comments
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@docentYT
Copy link

docentYT commented Feb 7, 2025

Describe the bug

onChangeLayout is not emitted when the layout changes.

Pull Request Link

No response

Reason for not contributing a PR

  • Lack of time
  • Unsure how to implement the fix/feature
  • Difficulty understanding the codebase
  • Other

Other Reason

No response

Reproducer

https://stackblitz.com/edit/github-qgrae9st?file=src%2Fapp%2Fapp.component.html

Environment

Primeng 19.0.6

Angular version

19.0.6

PrimeNG version

v19

Node version

22.12.0

Browser(s)

No response

Steps to reproduce the behavior

  1. Add
onChangeLayout(event: DataViewLayoutChangeEvent) {
    alert(event.layout);
    console.log(event.layout);
  }

function to component

  1. Add (onChangeLayout)="onChangeLayout($event)" to p-dataView.

Expected behavior

onChangeLayout() should execute

@docentYT docentYT added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible
Projects
None yet
Development

No branches or pull requests

1 participant