Skip to main content

Reflex custom component calendar

Project description

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

reflex-calendar-0.0.4.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

reflex_calendar-0.0.4-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

Details for the file reflex-calendar-0.0.4.tar.gz.

File metadata

  • Download URL: reflex-calendar-0.0.4.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.0

File hashes

Hashes for reflex-calendar-0.0.4.tar.gz
Algorithm Hash digest
SHA256 abfbeef2aded4aa526edf6f29d0195bf6a01d18caef86ed38ef7756b15ea561e
MD5 d422ea965b1f3b19b3f2f7d2b2a5d199
BLAKE2b-256 eda334347d0a3fa5f977dc65a1545527640ff43f33f4744be888d7f922338d1c

See more details on using hashes here.

File details

Details for the file reflex_calendar-0.0.4-py3-none-any.whl.

File metadata

File hashes

Hashes for reflex_calendar-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 a9dca4fcfacf71da2707a446ace7ee0e05ab9d5073d1391bf4dd280aaa004361
MD5 443d30169823f33f710b36f67888df35
BLAKE2b-256 3b7a82be4479bac84f6abbce014479ae49876352d6270ed766b400e23c5908f5

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page