S or /

SourceClass DatePickerButton

from egui import DatePickerButton
class DatePickerButton:

Shows a date, and will open a date picker popup when clicked.

Methods§

Sourcedef arrows(self, /, arrows: bool) -> DatePickerButton§

Show arrows in date picker popup. (Default: true)

Sourcedef calendar(self, /, calendar: bool) -> DatePickerButton§

Show calendar in date picker popup. (Default: true)

Sourcedef calendar_week(self, /, calendar_week: bool) -> DatePickerButton§

Show calendar week in date picker popup. (Default: true)

Sourcedef combo_boxes(self, /, combo_boxes: bool) -> DatePickerButton§

Show combo boxes in date picker popup. (Default: true)

Sourcedef format(self, /, format: str) -> DatePickerButton§

Change the format shown on the button. (Default: %Y-%m-%d) See jiff.fmt.strtime for valid formats.

Sourcedef highlight_weekends(self, /, highlight_weekends: bool) -> DatePickerButton§

Highlight weekend days. (Default: true)

Sourcedef id_salt(self, /, id_salt: str) -> DatePickerButton§

Add id source. Must be set if multiple date picker buttons are in the same Ui.

def id_source(self, /, id_source: str) -> DatePickerButton§
Sourcedef reverse_years(self, /, reverse_years: bool) -> DatePickerButton§

List years in descending order in the year dropdown. (Default: false)

def show(self, /, ui: Ui) -> Response§
Sourcedef show_icon(self, /, show_icon: bool) -> DatePickerButton§

Show the calendar icon on the button. (Default: true)

Sourcedef start_end_years(self, /, start: int, end: int) -> DatePickerButton§

Set the start and end years for the date picker. (Default: today's year - 100 to today's year + 10) This will limit the years you can choose from in the dropdown to the specified range.

For example, if you want to provide the range of years from 2000 to 2035, you can use: start_end_years(2000..=2035).

Sourcedef year_scroll_to(self, /, year: int) -> DatePickerButton§

Scroll the year dropdown to this year when the picker first opens. Defaults to the currently selected year.