Skip to content
Advertisement

Tag: calendar

Dash Dynamic Dropdown with Custom Option

I’m trying to create a dropdown menu that says ‘today’, ‘yesterday’, ‘last 7 days’ and ‘custom’. I want the calendar to automatically update when I choose an option in the dropdown menu. For ‘custom’ I want to pull the calendar so I can choose any dates I want. Here’s the sample code: The dropdown and calendar show up on that

Django attaching events to days in a calendar?

I have built a basic calendar which generates a table with the current month (taken from the URL) using the built-in calendar.Calendar function, but I would like to attach events to the days that are generated. What would be the best way to do that? Currently in my views: And in my template I can call the weeks and days

Advertisement