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

Calendar: Inline header slot #5736

Open
mateenagy opened this issue May 14, 2024 · 0 comments
Open

Calendar: Inline header slot #5736

mateenagy opened this issue May 14, 2024 · 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

@mateenagy
Copy link

Describe the bug

It is not really a bug, but it not make so much sense to me.

If the Calendar used with inline we are able to use the header slot. This header slot is kind of useless in this form because we can only append things before the built in header, but I think it's make more sense to have control for the whole header and expose the important values for control and display.

My use case here is for example I want disable the year/month selector when the date is clicked (without the pointer-events: none workaround) and also to control the button visibility logic.

In the Reproducer link I linked a proof of concept update in the Calendar component. It will expose some data and events for the header which can be used while creating custom template content

Reproducer

https://github.com/mateenagy/primevue/blob/master/components/lib/calendar/Calendar.vue

PrimeVue version

3.52.0

Vue version

3.x

Language

TypeScript

Build / Runtime

Vue CLI App

Browser(s)

No response

Steps to reproduce the behavior

No response

Expected behavior

No response

@mateenagy mateenagy added the Status: Needs Triage Issue will be reviewed by Core Team and a relevant label will be added as soon as possible label May 14, 2024
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