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

Issue with Custom Empty Message in <p-data-view> #17599

Open
andreamainella98 opened this issue Feb 6, 2025 · 0 comments
Open

Issue with Custom Empty Message in <p-data-view> #17599

andreamainella98 opened this issue Feb 6, 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

@andreamainella98
Copy link

andreamainella98 commented Feb 6, 2025

Hi,
I have implemented <p-data-view> in my component and wanted to add a custom message when no data is available.

According to the documentation at PrimeNG DataView Templates, in the templates section, it states that I should use "empty", but this does not work.

However, using #emptymessage works instead:

<ng-template #emptymessage>
    HI
</ng-template>

I am using the following PrimeNG version:

"@primeng/themes": "^19.0.5",
"primeicons": "^7.0.0",
"primeng": "^19.0.5"

Am I doing something wrong, or is the documentation unclear?

@github-actions github-actions bot 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 6, 2025
@andreamainella98 andreamainella98 changed the title DataView Documentation is not updated Issue with Custom Empty Message in <p-data-view> Feb 6, 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