Skip to content
New issue

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

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

Already on GitHub? # to your account

Dataview Empty template is ignored #17467

Open
1 of 4 tasks
GitJacek opened this issue Jan 22, 2025 · 1 comment
Open
1 of 4 tasks

Dataview Empty template is ignored #17467

GitJacek opened this issue Jan 22, 2025 · 1 comment
Labels
Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible

Comments

@GitJacek
Copy link

Describe the bug

Empty template is ignored in DataView component

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/mqm15rga-n9t4zgfq?file=src%2Fapp%2Fimports.ts,src%2Fapp%2Fdata-view-basic-demo.ts,src%2Fapp%2Fdata-view-basic-demo.html

Environment

Windows 11

Angular version

19.0.1

PrimeNG version

v19

Node version

No response

Browser(s)

No response

Steps to reproduce the behavior

Set #empty template for dataview, for example:
<ng-template #empty> empty template
See stackblitz

Expected behavior

It is expected to show text 'empty template'
Instead we get default 'No results found'

@GitJacek GitJacek added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label Jan 22, 2025
@kityre
Copy link

kityre commented Jan 23, 2025

Do not use #footer, but rather #emptymessage. I just had the sale issue, and this resolved it

# for free to join this conversation on GitHub. Already have an account? # 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

2 participants