__init__(self,
calendar=None,
date_format=None,
time_format=None,
separator=None,
minimum=None,
maximum=None,
past=None,
future=None,
past_months=None,
future_months=None,
month_selector=False,
year_selector=True,
min_year=None,
max_year=None,
week_number=False,
buttons=None,
timepicker=False,
minute_step=5,
set_min=None,
set_max=None,
clear_text=None)
(Constructor)
| source code
|
Constructor
- Parameters:
calendar - which calendar to use (override default)
date_format - the date format (override default)
time_format - the time format (override default)
separator - date-time separator (override default)
minimum - the minimum selectable date/time (overrides past)
maximum - the maximum selectable date/time (overrides future)
past - how many hours into the past are selectable (overrides
past_months)
future - how many hours into the future are selectable (overrides
future_months)
past_months - how many months into the past are selectable
future_months - how many months into the future are selectable
month_selector - show a months drop-down
year_selector - show a years drop-down
min_year - the minimum selectable year (can be relative to now like
"-10")
max_year - the maximum selectable year (can be relative to now like
"+10")
week_number - show the week number in the calendar
buttons - show the button panel (defaults to True if the widget has a
timepicker, else False)
timepicker - show a timepicker
minute_step - minute-step for the timepicker slider
set_min - CSS selector for another S3Calendar widget for which to
dynamically update the minimum selectable date/time from the
selected date/time of this widget
set_max - CSS selector for another S3Calendar widget for which to
dynamically update the maximum selectable date/time from the
selected date/time of this widget
|