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

Start adding full calendar #7356

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Start adding full calendar #7356

wants to merge 3 commits into from

Conversation

ahuang11
Copy link
Contributor

@ahuang11 ahuang11 commented Oct 3, 2024

Focusing only on the view options for now

Not sure how to handle interactions
https://fullcalendar.io/docs/date-clicking-selecting

  • docs
  • tests
  • fix re-rendering
import panel as pn

pn.extension()

cal = pn.widgets.Calendar(sizing_mode="stretch_both")

cal.add_event("2024-10-01 12:00")
cal.show()
image

@holovizbot
Copy link

This pull request has been mentioned on HoloViz Discourse. There might be relevant details there:

https://discourse.holoviz.org/t/how-to-use-jscomponent-with-fullcalendar/8306/11

else:
raise NotImplementedError(f"Unhandled message: {msg}")

def add_event(
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should add remove event too

Copy link
Contributor Author

@ahuang11 ahuang11 Oct 4, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should also add a way to change initial view and date

Copy link

codecov bot commented Oct 4, 2024

Codecov Report

Attention: Patch coverage is 71.21212% with 19 lines in your changes missing coverage. Please review.

Project coverage is 82.20%. Comparing base (615a43c) to head (8687fe1).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
panel/widgets/calendar.py 70.76% 19 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #7356      +/-   ##
==========================================
- Coverage   82.21%   82.20%   -0.02%     
==========================================
  Files         337      338       +1     
  Lines       50513    50579      +66     
==========================================
+ Hits        41530    41579      +49     
- Misses       8983     9000      +17     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

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

Successfully merging this pull request may close these issues.

2 participants