⌂
›
Reference
›
DateRangePicker
DateRangePicker
DateRangePicker control. Build it with the date_range_picker helper.
Example
date_range_picker(
open: true,
expand: true,
on_change: ->(event) {}
)
Properties
adaptive— Adapts to the platform (Material/Cupertino) when true.barrier_color— Barrier color.cancel_text— Cancel text.confirm_text— Confirm text.current_dateend_valueentry_modeerror_format_text— Error format text.error_invalid_range_text— Error invalid range text.error_invalid_text— Error invalid text.field_end_hint_text— Field end hint text.field_end_label_text— Field end label text.field_start_hint_text— Field start hint text.field_start_label_text— Field start label text.first_datehelp_text— Help text.keyboard_type— On-screen keyboard type (e.g. number, email).last_datelocalemodalopen— Whether the control (dialog/sheet/menu) is open.save_text— Save text.start_valueswitch_to_calendar_icon— Switch to calendar icon.switch_to_input_icon— Switch to input icon.
Plus the common layout and animation properties shared by most controls (expand, visible, disabled, opacity, width, height, align, tooltip, animate_*, …).
Events
on_change— Fired when the value changes.on_dismiss— Fired when the control is dismissed.
Reference
- Family:
materials - Widget type:
daterangepicker - Helper:
date_range_picker