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

Why Does PrimeVue Use the HTML data-* Attribute? #7142

Open
saad-nut opened this issue Jan 24, 2025 · 1 comment
Open

Why Does PrimeVue Use the HTML data-* Attribute? #7142

saad-nut opened this issue Jan 24, 2025 · 1 comment

Comments

@saad-nut
Copy link

Hello PrimeVue Team,

Thank you for the amazing library!

I’ve noticed that some PrimeVue components make use of the HTML data-* attribute. Could you clarify the purpose of this? Specifically:

Why is the data-* attribute used in PrimeVue components?
Is it primarily for internal functionality, or is it intended for developer use?
Thank you for your time and for helping me understand this better!

Best regards,

@J-Michalek
Copy link
Contributor

This seems more like a question suitable for the discord server rather than a GH issue.

The data atributes are not documented at all so they should not be used as they could change at any time. I think they are used internally to highlight the passthrough sections in the docs and possibly some other behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants