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

Clicking on the calendar view (day, week views) only references date, not time #169

Open
shamime opened this issue May 17, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@shamime
Copy link

shamime commented May 17, 2023

Right now according to the documentation, there is no way to find out the time user clicked in the calendar view - only date is getting referenced. Are there plans to enable time to be returned in the click event? Any workaround possible to achieve this result? That would be useful if the app wants to implement the functionality to create an event right from the calendar view.

Thank you!!

@tomosterlund
Copy link
Owner

This could be a good feature to enable by default. I'll add it to the roadmap. Feel free to suggest how the api should look for this.

Meanwhile, there is actually a way to achieve something similar. For this, however, you need to use the intervals feature: https://tomosterlund.github.io/qalendar/guide.html#intervals

@tomosterlund tomosterlund added the enhancement New feature or request label May 17, 2023
@shamime
Copy link
Author

shamime commented May 18, 2023

Thank you @tomosterlund for your response! The way I actually envisioned the API is as simple as it sounds - allow click event to propagate passing date/time into an event listener when user clicks anywhere on the calendar view. It could be as basic as just recognizing start date/time in the day/week view (date in the month view perhaps). And if there is a need to be more sophisticated - the calendar can allow for predefined interval to be initiated upon a click (I believe this is what you are referring to). My idea is while using intervals is totally suitable, it requires some additional setup, which could be made optional (with certain assumptions like duration for example). Again, just having start date/time passed into click event would be a great starting point for this feature. Thank you!

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

No branches or pull requests

2 participants