Skip to main content

calendar

A Reflex custom component calendar wrapping the react-calendar component.

Installation

pip install reflex-calendar

Usage

from reflex_calendar import calendar

def index():
    return calendar()

Props:

  • go_to_range_start_on_select: Go to the start of the range when selecting a range.
  • value: The date value.
  • locale: The locale.
  • min_date: The minimum date.
  • max_date: The maximum date.
  • min_detail: The minimum detail.
  • max_detail: The maximum detail.
  • navigation_label: The navigation label.
  • next2_label: The next2 label.
  • next_label: The next label.
  • prev2_label: The prev2 label.
  • prev_label: The prev label.
  • select_range: The select range.
  • show_double_view: Show double view.
  • show_fixed_number_of_weeks: Show fixed number of weeks.
  • show_navigation: Show navigation.
  • show_neighboring_month: Show neighboring month.
  • show_neighboring_century: Show neighboring century.
  • show_neighboring_decade: Show neighboring decade.
  • show_week_numbers: Show week numbers.

Event triggers:

  • on_change: Triggered when the date is changed. (return the date)
  • on_click_day: Triggered when a day is clicked. (return the full date)
  • on_click_month: Triggered when a month is clicked. (return a date at start/end of the month)
  • on_click_year: Triggered when a year is clicked. (return a date at start/end of the year)
  • on_click_decade: Triggered when a decade is clicked. (return a date at start/end of the decade)
  • on_click_week_number: Triggered when a week number is clicked. (return a date at start/end of the week)
  • on_drill_down: Triggered when the calendar is drilled down. (return the event)
  • on_drill_up: Triggered when the calendar is drilled up. (return the event)
  • on_view_change: Triggered when the view is changed. (return the event)

When returning an event, it's a dictionary with the following keys:

  • action: The action.
  • activeStartDate: The start date in the resulting view.
  • value: The value.
  • view: The view where the event happened.

Release files for reflex-calendar 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for reflex-calendar 0.0.6
File Size Uploaded
reflex_calendar-0.0.6.tar.gz 5.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for reflex-calendar 0.0.6
File Interpreter ABI Platform
reflex_calendar-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 11.6 kB

Release files / reflex_calendar-0.0.6.tar.gz

Download URL reflex_calendar-0.0.6.tar.gz
Size 5.6 kB
Tags Source
SHA-256 checksum
How to use checksums
edfcd63870dee25ba5eebe50986304c98894b0a086a29b001d6ea6dc5de577c1
BLAKE2b-256 checksum
How to use checksums
e7c9362730fcfe58a97bfe10ec1155e3b26e27374b83be8394d4fda56521a670
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release files / reflex_calendar-0.0.6-py3-none-any.whl

Download URL reflex_calendar-0.0.6-py3-none-any.whl
Size 6.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
38e3e9307f88bcf02f4294c0fedacaa96b67f2f352fced9f5901c44b68d07684
BLAKE2b-256 checksum
How to use checksums
dbf8134c9ddac87f992cbae86a1257e28ca640bd8a95cce083d0f1512f752003
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.0.1 CPython/3.12.7

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page