CalendarView¶
Screenshot¶
Example¶
from datetime import datetime
from enamlnative.widgets.api import *
enamldef ContentView(ScrollView):
Flexbox:
flex_direction = "column"
CalendarView: cv:
pass
TextView:
text << f"Date: {cv.date}"
CalendarView:
min_date = datetime(1982, 3, 1)
max_date = datetime.now()
date = datetime.now()
Declaration¶
- class enamlnative.widgets.calendar_view.CalendarView(parent=None, **kwargs)[source]¶
Bases:
enamlnative.widgets.frame_layout.FrameLayout
CalendarView is a view group that displays child views in relative positions.
- date¶
Selected date
- max_date¶
Max date
- min_date¶
Min date
- first_day_of_week¶
First day of week
- proxy¶
A reference to the ProxyLabel object.
Android Implementation¶
- class enamlnative.android.android_calendar_view.AndroidCalendarView[source]¶
Bases:
enamlnative.android.android_frame_layout.AndroidFrameLayout
,enamlnative.widgets.calendar_view.ProxyCalendarView
An Android implementation of an Enaml ProxyCalendarView.
- widget¶
A reference to the widget created by the proxy.
No iOS implementation found.