DatePicker¶
Screenshot¶
Example¶
from enamlnative.widgets.api import Flexbox, DatePicker, TextView
enamldef ContentView(Flexbox):
flex_direction = "column"
align_items = "center"
justify_content = "center"
background_color = "#eee"
DatePicker: dp:
background_color = "white"
margin = (0, 0, 0, 10)
width = "wrap_content"
height = "wrap_content"
TextView:
text << f"Date selected: {dp.date}"
Declaration¶
- class enamlnative.widgets.date_picker.DatePicker(parent=None, **kwargs)[source]¶
Bases:
enamlnative.widgets.frame_layout.FrameLayout
A simple control for displaying read-only text.
- date¶
Update the current year.
- min_date¶
Sets the minimal date supported by this DatePicker in milliseconds since January 1, 1970 00:00:00 in getDefault() time zone.
- max_date¶
Sets the maximal date supported by this DatePicker in milliseconds since January 1, 1970 00:00:00 in getDefault() time zone.
- first_day_of_week¶
Sets the first day of week.
- proxy¶
A reference to the ProxyLabel object.
Android Implementation¶
- class enamlnative.android.android_date_picker.AndroidDatePicker[source]¶
Bases:
enamlnative.android.android_frame_layout.AndroidFrameLayout
,enamlnative.widgets.date_picker.ProxyDatePicker
An Android implementation of an Enaml ProxyDatePicker.
- widget¶
A reference to the widget created by the proxy.
No iOS implementation found.